Skip to content

Commit 00ff7e3

Browse files
committed
Let Ruff scan doc/source/conf.py
And other .py files in doc/, if there ever were any. This may have been turned off before either for performance or out of a concern than some flake8 plugin would catch something in the docs themselves, but that's no longer an issue. The doc/build directory, which should still not be scanned, is already excluded in other ways (and does not need to be excluded for pre-commit to improve performance, since it is untracked).
1 parent e880c33 commit 00ff7e3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
exclude: ^git/ext/
88
- id: ruff
99
args: ["--fix"]
10-
exclude: ^doc|^git/ext/
10+
exclude: ^git/ext/
1111

1212
- repo: https://github.com/shellcheck-py/shellcheck-py
1313
rev: v0.9.0.5

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ line-length = 120
4848
# Exclude a variety of commonly ignored directories.
4949
exclude = [
5050
"git/ext/",
51-
"doc",
5251
"build",
5352
"dist",
5453
]

0 commit comments

Comments
 (0)