diff options
author | cclauss <cclauss@bluewin.ch> | 2018-12-03 13:05:45 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-06 17:55:33 +0100 |
commit | d1179613d433202c4f6acaa59e950d868dd39454 (patch) | |
tree | 055f885e03ed5fb08dc9ee48d6c5e79ad717bb95 | |
parent | 66602ad23905e6a1d24be1b7aa3fe5fc6f379fae (diff) | |
download | node-new-d1179613d433202c4f6acaa59e950d868dd39454.tar.gz |
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>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |