Skip to content

Commit 6deb34f

Browse files
Add ruff exclusions to pyproject.toml (pylint-dev#2537)
This makes it easier to run 'ruff check' outside of the pre-commit hook. Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent 78f7f60 commit 6deb34f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ repos:
1313
rev: "v0.6.3"
1414
hooks:
1515
- id: ruff
16-
exclude: tests/testdata
1716
args: ["--fix"]
1817
- repo: https://github.com/Pierre-Sassoulas/copyright_notice_precommit
1918
rev: 0.1.2

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ ignore_missing_imports = true
9898
[tool.ruff]
9999
target-version = "py39"
100100

101+
exclude = ["tests/testdata/"]
102+
101103
# ruff is less lenient than pylint and does not make any exceptions
102104
# (for docstrings, strings and comments in particular).
103105
line-length = 110

0 commit comments

Comments
 (0)