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
At the moment, only flake8 are being used for checking the code style. Although very useful, this tool does not cover things such us proper import order or code formatting.
Therefore, it is usual to use flake8 together with black and isort:
black is the uncompromising Python code formatter.
Both tools are very popular in the Python ecosystem. Other projects in the PyAnsys ecosystem such us PyMAPDL also benefit from previous code style tools.
Code quality can also be improved by checking docstrings or misspelled words. For this task, other tools can be used:
🐞 Problem
At the moment, only flake8 are being used for checking the code style. Although very useful, this tool does not cover things such us proper import order or code formatting.
Therefore, it is usual to use flake8 together with black and isort:
Both tools are very popular in the Python ecosystem. Other projects in the PyAnsys ecosystem such us PyMAPDL also benefit from previous code style tools.
Code quality can also be improved by checking docstrings or misspelled words. For this task, other tools can be used:
💡 Solution
From my point of view, the best way to implement the code style checking is using pre-commit. This has the following advantages:
.pre-commit-config.yml
file.You can always add more style checking utilities on top of previous ones if those are needed at some point.
The text was updated successfully, but these errors were encountered: