Skip to content

Commit cb5f738

Browse files
committed
Ignore isort on _version.py
The file is generated. This makes `ruff src/` run cleanly (when not running through pre-commit).
1 parent 5be64c3 commit cb5f738

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,6 @@ force-sort-within-sections = true
178178
order-by-type = false
179179
known-local-folder = ["pytest", "_pytest"]
180180
lines-after-imports = 2
181+
182+
[tool.ruff.lint.per-file-ignores]
183+
"src/_pytest/_version.py" = ["I001"]

0 commit comments

Comments
 (0)