summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcclauss <cclauss@bluewin.ch>2018-12-03 13:05:45 +0100
committerRich Trott <rtrott@gmail.com>2018-12-05 20:06:12 -0800
commit7bcbf044ddc864be9d6c711a75f3a33b6a3c652e (patch)
treeb16952224463bb386b0d52a7e2a3f1f93e9d261a /Makefile
parent2fab5d552ebf1e94a7e84926baac32bdebd8321b (diff)
downloadandroid-node-v8-7bcbf044ddc864be9d6c711a75f3a33b6a3c652e.tar.gz
android-node-v8-7bcbf044ddc864be9d6c711a75f3a33b6a3c652e.tar.bz2
android-node-v8-7bcbf044ddc864be9d6c711a75f3a33b6a3c652e.zip
build: add '.git' to 'make lint-py' exclude list
When run locally [flake8](http://flake8.pycqa.org) was creating false positives by scanning the __.git__ directory. This PR prevents that behavior. PR-URL: https://github.com/nodejs/node/pull/24802 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6fdd9b8d4b..6dfc1de6af 100644
--- a/Makefile
+++ b/Makefile
@@ -1286,7 +1286,7 @@ ifneq ("","$(wildcard tools/pip/site-packages)")
lint-py:
PYTHONPATH=tools/pip $(PYTHON) -m flake8 . \
--count --show-source --statistics --select=E901,E999,F821,F822,F823 \
- --exclude=deps,lib,src,tools/*_macros.py,tools/gyp,tools/jinja2,tools/pip
+ --exclude=.git,deps,lib,src,tools/*_macros.py,tools/gyp,tools/jinja2,tools/pip
else
lint-py:
@echo "Python linting with flake8 is not avalible"