diff options
author | Stephen Finucane <stephen@that.guru> | 2017-10-01 16:26:40 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-10-05 17:17:27 +0100 |
commit | 160e27e20f059a8dffad9e6454ea6763a51feb70 (patch) | |
tree | 8daa841bc0932542cbefaed9ea6e9d88e79e79f9 /Makefile | |
parent | f5c0d646589ba0da03c4afc1487b0d28751fe774 (diff) | |
download | sphinx-git-160e27e20f059a8dffad9e6454ea6763a51feb70.tar.gz |
utils: Remove 'check_sources'
There are still a couple of checks here but all of them can be removed
now:
- Check if using valid Python syntax
- Check if line length too long
- Check if using 'x == None/True/False'
- Check if using old HTML 3 tags
The first three are already handled by default by the 'flake8' tool. The
last one isn't replaced by anything, but it really isn't worth worrying
about now because the tags it checks for have been dead for a really
long time and would not be used by anyone writing HTML in the last 10
years. Combined, it means we can remove the entire file.
The 'style-check' target is updated to simply alias 'flake8'. It can be
removed in a future release. This allows us to stop using this target in
the Travis jobs, seeing as we already run flake8.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 34 |
1 files changed, 1 insertions, 33 deletions
@@ -3,42 +3,10 @@ PYTHON ?= python .PHONY: all style-check type-check clean clean-pyc clean-patchfiles clean-backupfiles \ clean-generated pylint reindent test covertest build -DONT_CHECK = -i .ropeproject \ - -i .tox \ - -i build \ - -i dist \ - -i doc/_build \ - -i sphinx/pycode/pgen2 \ - -i sphinx/search/da.py \ - -i sphinx/search/de.py \ - -i sphinx/search/en.py \ - -i sphinx/search/es.py \ - -i sphinx/search/fi.py \ - -i sphinx/search/fr.py \ - -i sphinx/search/hu.py \ - -i sphinx/search/it.py \ - -i sphinx/search/ja.py \ - -i sphinx/search/nl.py \ - -i sphinx/search/no.py \ - -i sphinx/search/pt.py \ - -i sphinx/search/ro.py \ - -i sphinx/search/ru.py \ - -i sphinx/search/sv.py \ - -i sphinx/search/tr.py \ - -i sphinx/style/jquery.js \ - -i sphinx/util/smartypants.py \ - -i tests/build \ - -i tests/path.py \ - -i tests/roots/test-directive-code/target.py \ - -i tests/roots/test-warnings/undecodable.rst \ - -i tests/test_autodoc_py35.py \ - -i tests/typing_test_data.py \ - -i utils/convert.py - all: clean-pyc clean-backupfiles style-check type-check test style-check: - @PYTHONWARNINGS=all $(PYTHON) utils/check_sources.py $(DONT_CHECK) . + @flake8 type-check: mypy sphinx/ |