diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-01 16:22:00 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-01 16:22:00 -0400 |
commit | b3f1198035da5576416f2096ca5e0fa19ca5ccab (patch) | |
tree | 3f2f789af8f10983ae236719fb3e5dced766cdf3 | |
parent | 47612250e00725dc182fe55e1867ebfc1b5d98bf (diff) | |
download | python-coveragepy-git-b3f1198035da5576416f2096ca5e0fa19ca5ccab.tar.gz |
Move pycodestyle settings to setup.cfg
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | setup.cfg | 9 | ||||
-rw-r--r-- | tox-new.ini | 10 | ||||
-rw-r--r-- | tox.ini | 10 |
4 files changed, 10 insertions, 21 deletions
@@ -39,7 +39,7 @@ spell: -pylint --disable=all --enable=spelling $(LINTABLE) pep8: - pep8 --filename=*.py --repeat $(LINTABLE) + pycodestyle --filename=*.py --repeat $(LINTABLE) test: tox -e py27,py35 $(ARGS) @@ -1,2 +1,11 @@ [tool:pytest] addopts = -q + +[pep8] +# E265 block comment should start with '# ' +# E266 too many leading '#' for block comment +# E301 expected 1 blank line, found 0 +# E401 multiple imports on one line +# The rest are the default ignored warnings. +ignore = E265,E266,E123,E133,E226,E241,E242,E301,E401 +max-line-length = 100 diff --git a/tox-new.ini b/tox-new.ini index aaca6a4d..bc5f041a 100644 --- a/tox-new.ini +++ b/tox-new.ini @@ -51,13 +51,3 @@ basepython = pypy2.6 [testenv:pypy3_24] basepython = pypy3-2.4 - - -# Yes, pep8 will read its settings from tox.ini! -[pep8] -# E265: block comment should start with '# ' -# E301 expected 1 blank line, found 0 -# E401 multiple imports on one line -# The rest are the default ignored warnings. -ignore = E265,E123,E133,E226,E241,E242,E301,E401 -max-line-length = 100 @@ -80,13 +80,3 @@ commands = sphinx-build -b html -b linkcheck -aEnQW doc doc/_build/html rst2html.py --strict CHANGES.rst doc/_build/trash rst2html.py --strict README.rst doc/_build/trash - -# Yes, pep8 will read its settings from tox.ini! -[pep8] -# E265 block comment should start with '# ' -# E266 too many leading '#' for block comment -# E301 expected 1 blank line, found 0 -# E401 multiple imports on one line -# The rest are the default ignored warnings. -ignore = E265,E266,E123,E133,E226,E241,E242,E301,E401 -max-line-length = 100 |