diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-12 08:00:56 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-12 08:00:56 -0500 |
commit | e5b6d5af086583410298baba20c0e6bf87d53b5c (patch) | |
tree | 9d35f88deffc414dac90eeca84e2e870379525c6 | |
parent | 34c8cc69cada9fef4609d22c1b2fa6e28f365ea7 (diff) | |
download | python-coveragepy-e5b6d5af086583410298baba20c0e6bf87d53b5c.tar.gz |
Run lint with tox. I wish it ran faster...
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | __main__.py | 3 | ||||
-rw-r--r-- | tox.ini | 11 |
3 files changed, 18 insertions, 5 deletions
@@ -30,12 +30,13 @@ clean: sterile: clean -rm -rf .tox* -LINTABLE = coverage igor.py setup.py tests ci/*.py +LINTABLE = coverage tests igor.py setup.py __main__.py lint: - -pylint $(LINTABLE) - python -m tabnanny $(LINTABLE) - python igor.py check_eol + tox -e lint + +todo: + -grep -R --include=*.py TODO $(LINTABLE) spell: -pylint --disable=all --enable=spelling $(LINTABLE) diff --git a/__main__.py b/__main__.py index a44b820..c998e1d 100644 --- a/__main__.py +++ b/__main__.py @@ -3,7 +3,8 @@ """Be able to execute coverage.py by pointing Python at a working tree.""" -import runpy, os +import runpy +import os PKG = 'coverage' @@ -69,3 +69,14 @@ commands = sphinx-build -b html -b linkcheck -aEnQW doc doc/_build/html sphinx-build -b html -aqE doc doc/_build/html rst2html.py --strict README.rst doc/_build/trash + +[testenv:lint] +deps = -rrequirements/dev.pip + +setenv = + LINTABLE = coverage tests igor.py setup.py __main__.py + +commands = + python -m pylint --notes= {env:LINTABLE} + python -m tabnanny {env:LINTABLE} + python igor.py check_eol |