Skip to content

Commit 552a5c0

Browse files
cclaussBethGriggs
cclauss
authored andcommitted
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: #24802 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d5d8670 commit 552a5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ ifneq ("","$(wildcard tools/pip/site-packages)")
12391239
lint-py:
12401240
PYTHONPATH=tools/pip $(PYTHON) -m flake8 . \
12411241
--count --show-source --statistics --select=E901,E999,F821,F822,F823 \
1242-
--exclude=deps,lib,src,tools/*_macros.py,tools/gyp,tools/jinja2,tools/pip
1242+
--exclude=.git,deps,lib,src,tools/*_macros.py,tools/gyp,tools/jinja2,tools/pip
12431243
else
12441244
lint-py:
12451245
@echo "Python linting with flake8 is not avalible"

0 commit comments

Comments
 (0)