summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-12 08:00:56 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-12 08:00:56 -0500
commite5b6d5af086583410298baba20c0e6bf87d53b5c (patch)
tree9d35f88deffc414dac90eeca84e2e870379525c6
parent34c8cc69cada9fef4609d22c1b2fa6e28f365ea7 (diff)
downloadpython-coveragepy-e5b6d5af086583410298baba20c0e6bf87d53b5c.tar.gz
Run lint with tox. I wish it ran faster...
-rw-r--r--Makefile9
-rw-r--r--__main__.py3
-rw-r--r--tox.ini11
3 files changed, 18 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index e7420a7..a9a5a72 100644
--- a/Makefile
+++ b/Makefile
@@ -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'
diff --git a/tox.ini b/tox.ini
index ed41aca..2a83f6f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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