flake8 is used within GHC for Python style checking via Travis. flake8 can however be somewhat cumbersome to use as a fully piped command line needs to be provided currently:
find . -name "*.py" | grep -v docs | grep -v migrations | xargs flake8
Also this takes all default flake8 settings. It is more convenient to use a .flake8 config file and later possibly in tox.ini. Now a developer and in Travis only this commandline remains for invoking flake8:
Also we can more clearly set some less stricter rules like the default 79 char line length.
flake8 is used within GHC for Python style checking via Travis.
flake8can however be somewhat cumbersome to use as a fully piped command line needs to be provided currently:Also this takes all default
flake8settings. It is more convenient to use a .flake8 config file and later possibly intox.ini. Now a developer and in Travis only this commandline remains for invokingflake8:Also we can more clearly set some less stricter rules like the default 79 char line length.