Closed BoPeng closed 5 years ago
@jma7 Please
pip install pre-commit flake8 yapf
pre-commit run --all-files
or simply
flake8 src/variant_tools/*.py
You can ignore some flake8 warnings in .pre-commit-config.yaml
.
The goal is to make sure pre-commit run --all-files
does not generate any warning.
Here I am using flake8
because pyflakes
is said to be deprecated.
Note that you can ignore swig
generated .py
files such as cgatools.py
since your changes would be overwritten by swig
. pre-commit
documents options to exclude files.
There is some compatibility issue with pre-commit and virtualenv according to https://github.com/NREL/ditto/issues/147. I have to go through
conda install virtualenv
conda install pre_commit -c conda-forge
to make it work.
These will help us keep the source code in good shape.