Skip to content

Commit

Permalink
add flake8 config and enable in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
undeath committed Oct 7, 2018
1 parent 36c3fd9 commit 9d72573
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -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 !"
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Expand Up @@ -6,4 +6,4 @@ pytest
pytest-cov
python-coveralls
mock

flake8
21 changes: 21 additions & 0 deletions 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

0 comments on commit 9d72573

Please sign in to comment.