Ignore isort on _version.py

The file is generated. This makes `ruff src/` run cleanly (when not
running through pre-commit).
This commit is contained in:
Ran Benita 2024-02-02 21:29:30 +02:00
parent 5be64c31cb
commit cb5f738858
1 changed files with 3 additions and 0 deletions

View File

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