From 598261899eb0a3d599d419a5f4f726e84506cff7 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Thu, 5 Sep 2024 15:29:25 -0400 Subject: [PATCH] Move Pylint exclusions to pylintrc (#2542) This makes it easier to run Pylint outside of the pre-commit hooks. --- .pre-commit-config.yaml | 1 - pylintrc | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9d333f152..0a11e4204b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,7 +52,6 @@ repos: "--output-format=github", # "--load-plugins=pylint.extensions.docparams", We're not ready for that ] - exclude: tests/testdata|conf.py - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.11.2 hooks: diff --git a/pylintrc b/pylintrc index 76aa73716c..0ae1e4d4a1 100644 --- a/pylintrc +++ b/pylintrc @@ -11,6 +11,12 @@ # paths. ignore=CVS +# Add files or directories matching the regular expressions patterns to the +# ignore-list. The regex matches against paths and can be in Posix or Windows +# format. Because '\\' represents the directory delimiter on Windows systems, +# it can't be used as an escape character. +ignore-paths=doc/conf.py,tests/testdata/ + # Pickle collected data for later comparisons. persistent=yes