Skip to content

Commit

Permalink
use setup.cfg to configure flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudum committed May 2, 2018
1 parent 9d1060d commit efdfcde
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ matrix:
allow_failures:
- python: nightly
before_script:
- bin/flake8 --ignore E501,C901 --count src
- bin/flake8
script:
- bin/coverage run bin/test -vv1
after_success:
Expand Down
10 changes: 9 additions & 1 deletion base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ parts = test
crate
scripts
coverage
linter

[scripts]
recipe = zc.recipe.egg:script
interpreter = py
eggs = crate
crate [test,sqlalchemy]
flake8

[coverage]
recipe = zc.recipe.egg
Expand All @@ -29,3 +29,11 @@ relative-paths=true
recipe = zc.recipe.testrunner
defaults = ['--auto-color']
eggs = crate [test,sqlalchemy]

[linter]
recipe = zc.recipe.egg:script
eggs = flake8
scripts = flake8
initialization =
sys.argv.extend(['--count',
'${buildout:directory}/src'])
1 change: 0 additions & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ parts += tox
recipe = zc.recipe.egg:script
eggs = wheel
docutils
flake8
twine

[tox]
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[wheel]
universal = 1

[flake8]
ignore = E501,C901
5 changes: 0 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@ deps =
urllib3
commands =
zope-testrunner -c --test-path=src

[flake8]
ignore = E302,E303,W293
max-line-length = 79
max-complexity = 10

0 comments on commit efdfcde

Please sign in to comment.