New code is required to have unit tests providing 95% test coverage or more.
Contributions are required to conform to PEP8. We use flake8 to test these.
Before committing, you can check the requirements by running tox
in the root folder. This runs some of the tests
performed by the CI build.
- install flake8 into your python environment
pip install flake8
- [optional] integrate PEP8 into your IDE
- Add an external tool with these options:
- Name:
flake8
- Program:
flake8
- Parameters:
--doctests --count --max-line-length=120 --format=pylint $FilePath$
- Working directory:
$ProjectFileDir$
- Add an external tool output filter:
$FILE_PATH$\:$LINE$:\.*
- Name: