Skip to content

Commit 19e4a56

Browse files
MNT: ignore F401 in doc/source/conf.py
Enforce that in pyproject.toml instead of conf.py itself.
1 parent 223fdc0 commit 19e4a56

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030

3131
# Check for external Sphinx extensions we depend on
3232
try:
33-
import numpydoc # noqa: F401
33+
import numpydoc
3434
except ImportError:
3535
raise RuntimeError('Need to install "numpydoc" package for doc build')
3636
try:
37-
import texext # noqa: F401
37+
import texext
3838
except ImportError:
3939
raise RuntimeError('Need to install "texext" package for doc build')
4040

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ ignore = [
135135

136136
[tool.ruff.lint.per-file-ignores]
137137
"__init__.py" = ["F401"]
138+
"doc/source/conf.py" = ["F401"]
138139

139140
[tool.ruff.format]
140141
quote-style = "single"

0 commit comments

Comments
 (0)