You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The different scripts and notebooks are not being tested from the point of view of code style. I am aware of the different languages being used in this repo, such as C#, Python, Matlab...
Nevertheless, it should be feasible to implement a .github/workflow/style.yml to check for custom-defined code style guidelines. This would ensure that all the code for a particular programming language looks the same, no matter the original author.
💡 Solution
If you are interested in implementing this feature, I could go for it.
We could start by implementing a Python code style checker based on black, isort and flake8. These tools can also be used in the Jupyter Notebooks.
Please, let me know what you think about this and if it would be of your interes.
The text was updated successfully, but these errors were encountered:
@jorgepiloto I have finally got around to working on this. I have gone about adding both black and isort to a pre-commit file so that these can be run prior to any code commits.
These can also be added to a github action, just have not done that yet...
I also have not integrated flake8 yet but can do that.
Some months ago, we created pyansys/actions. This repository is a collection of reusable GitHub workflows. These allow to simplify the common CI/CD pipelines of a project. The pyansys/actions/style@v3 action installs, reads and runs the pre-commit-config.yaml file.
🐞 Problem
The different scripts and notebooks are not being tested from the point of view of code style. I am aware of the different languages being used in this repo, such as C#, Python, Matlab...
Nevertheless, it should be feasible to implement a
.github/workflow/style.yml
to check for custom-defined code style guidelines. This would ensure that all the code for a particular programming language looks the same, no matter the original author.💡 Solution
If you are interested in implementing this feature, I could go for it.
We could start by implementing a Python code style checker based on black, isort and flake8. These tools can also be used in the Jupyter Notebooks.
Please, let me know what you think about this and if it would be of your interes.
The text was updated successfully, but these errors were encountered: