Skip to content

Commit e7b7e1c

Browse files
Ignore .pytype directory for pylint (#417)
After upgrading pytype, it now writes a bunch of .pyi files into the .pytype directory. yapf and pylint pick these directories up and report a ton of issues that are completely meaningless. This patch makes it so that pylint ignores any files within .pytype. yapf does not have any option in the config to ignore files, so just blanket running yapf . -ir or specifying individual files is still necessary, but I think that should be less interruptive. This is purely a developer workflow improvement.
1 parent 3ddfad9 commit e7b7e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ignore=third_party
1212

1313
# Files or directories matching the regex patterns are skipped. The regex
1414
# matches against base names, not paths.
15-
ignore-patterns=
15+
ignore-patterns=.pytype
1616

1717
# Pickle collected data for later comparisons.
1818
persistent=no

0 commit comments

Comments
 (0)