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 | f2f9bed2b7d3eeba2a500c9f404992e11eff51d2 (patch) | |
tree | 428805010316f0fbad54a4e750bbdbf9b7e8f71a | |
parent | 5889e7f726928e912e2685aab0384f7df8bc94bc (diff) | |
download | python-coveragepy-git-f2f9bed2b7d3eeba2a500c9f404992e11eff51d2.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 a44b820a..c998e1da 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 |