Code Standards
Our older repositories were just checked with flake8.
We are now moving to checking all repositories with flake8, black and isort.
Note black will only work on Python 3.6+ so if the repository supports older version of Python, tricks will need to be used to make sure it only installs on 3.6+.
There are some config files we need.
isort.cfg
should be:
setup.cfg
should be:
.Travis should have lines to run isort, black and flake8.
black --check .py /
isort --check-only --recursive .py /
flake8
Read our guide on adding Black and isort to an existing Python repository
Last updated