diff --git a/.travis.yml b/.travis.yml index 0c0ae4389..4831b8e7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,6 +50,7 @@ before_script: script: - on_host do_on linux bitcoind --help | head -1 - on_host do_on linux ./test/run_tests.sh + - on_host do_on linux flake8 jmbase jmbitcoin jmclient jmdaemon scripts test - on_docker ./test/Dockerfiles/build_docker.sh after_success: - on_docker echo "Success !" diff --git a/requirements-dev.txt b/requirements-dev.txt index f3174ec70..bc12d0115 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,4 +6,4 @@ pytest pytest-cov python-coveralls mock - +flake8 diff --git a/setup.cfg b/setup.cfg index 93eaf3966..5f090bc8c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,24 @@ # content of pytest.ini [tool:pytest] testpaths = jmbitcoin jmclient jmbase jmdaemon test + +[flake8] +exclude = + # defaults + .svn,CVS,.bzr,.hg,.git,__pycache__,.tox, + # lots of "unused imports" + __init__.py, + # unmaintained + jmclient/jmclient/slowaes.py + +# default value, keep? +max-line-length = 79 + +statistics = True +max-complexity = 15 + +# should be extended once existing issues are fixed +select = F,E9,W6 + +# those cause many errors, need to be fixed eventually +ignore = F403,F405,F841