Fix PEP-8 issue and move the pycodestyle config into a central location.

This commit is contained in:
Dave Page 2019-03-20 08:57:43 +00:00
parent a4bc26c810
commit 9273da2dc6
3 changed files with 5 additions and 4 deletions

View File

@ -35,8 +35,8 @@ check: install-node bundle linter
cd web && pycodestyle --config=.pycodestyle . && yarn run karma start --single-run && python regression/runtests.py
check-pep8:
cd web && pycodestyle --config=.pycodestyle .
cd tools && pycodestyle --config=../web/.pycodestyle .
cd web && pycodestyle --config=../.pycodestyle .
cd tools && pycodestyle --config=../.pycodestyle .
check-python:
cd web && python regression/runtests.py --exclude feature_tests

View File

@ -19,8 +19,9 @@ import re
import codecs
ALLOWED_FILE_EXTENSIONS = (
".py", ".js", ".sql", ".cpp", ".h", ".rc", ".am", ".wsgi", ".pro", ".plist",
".rst", ".sh", ".in", ".mako", ".ini", ".jsx", ".rtf", ".rst", "LICENSE"
".py", ".js", ".sql", ".cpp", ".h", ".rc", ".am", ".wsgi", ".pro",
".plist", ".rst", ".sh", ".in", ".mako", ".ini", ".jsx", ".rtf", ".rst",
"LICENSE"
)
EXCLUDE_DIR = ("node_modules")