From a22ac0bb667d0f71fc2599ed236df99bde8cf109 Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 3 Dec 2018 13:05:45 +0100 Subject: [PATCH] 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 Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6fdd9b8d4b2850..6dfc1de6af5833 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"