Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add flake8 config and enable in travis
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ pytest | |
pytest-cov | ||
python-coveralls | ||
mock | ||
|
||
flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |