Skip to content

Commit 5982618

Browse files
authored
Move Pylint exclusions to pylintrc (#2542)
This makes it easier to run Pylint outside of the pre-commit hooks.
1 parent 71f5c0c commit 5982618

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ repos:
5252
"--output-format=github",
5353
# "--load-plugins=pylint.extensions.docparams", We're not ready for that
5454
]
55-
exclude: tests/testdata|conf.py
5655
- repo: https://github.com/pre-commit/mirrors-mypy
5756
rev: v1.11.2
5857
hooks:

pylintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
# paths.
1212
ignore=CVS
1313

14+
# Add files or directories matching the regular expressions patterns to the
15+
# ignore-list. The regex matches against paths and can be in Posix or Windows
16+
# format. Because '\\' represents the directory delimiter on Windows systems,
17+
# it can't be used as an escape character.
18+
ignore-paths=doc/conf.py,tests/testdata/
19+
1420
# Pickle collected data for later comparisons.
1521
persistent=yes
1622

0 commit comments

Comments
 (0)