From cb5f7388581228530d554f7b559b986bf1a0d474 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 2 Feb 2024 21:29:30 +0200 Subject: [PATCH] Ignore isort on _version.py The file is generated. This makes `ruff src/` run cleanly (when not running through pre-commit). --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index c93111492..ebfbe1a03 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -178,3 +178,6 @@ force-sort-within-sections = true order-by-type = false known-local-folder = ["pytest", "_pytest"] lines-after-imports = 2 + +[tool.ruff.lint.per-file-ignores] +"src/_pytest/_version.py" = ["I001"]