Minimum Version: 3.8
For Python, we use flake8 and pylint to check Python code such that it follows things laid out in PEP-8, PEP-257, etc. The code is linted as part of our automated Travis-CI testsuite to ensure compliance. To locally lint the code, you will need to install four modules:
pip3 install flake8 flake8-bugbear pylint
and then you can just run
flake8 at the root to check all files or pass it an individual file to check just that.
To see all files that are currently checked as part of Travis-CI, please look at the
.flake8 config file.
For pylint, you can just run
pylint --recursive=y . at the root to check all files or pass it an individual file.