From 9273da2dc68ecf6cc1e2b4262f6de57bd04e2937 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 20 Mar 2019 08:57:43 +0000 Subject: [PATCH] Fix PEP-8 issue and move the pycodestyle config into a central location. --- web/.pycodestyle => .pycodestyle | 0 Makefile | 4 ++-- tools/copyright_updater.py | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) rename web/.pycodestyle => .pycodestyle (100%) diff --git a/web/.pycodestyle b/.pycodestyle similarity index 100% rename from web/.pycodestyle rename to .pycodestyle diff --git a/Makefile b/Makefile index c32c15fed..dc8e29960 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/tools/copyright_updater.py b/tools/copyright_updater.py index 9f4e84fb7..4ab8540e7 100644 --- a/tools/copyright_updater.py +++ b/tools/copyright_updater.py @@ -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")