From 3978528f9f084a32e0372493634c045d2fe2bad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 18 Feb 2024 13:38:26 +0100 Subject: [PATCH] Update ruff settings --- pyproject.toml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c436882..635fcc1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,9 +59,6 @@ title_format = "{version} ({project_date})" [tool.ruff] fix = true -select = [ - "E", "F", "W", "C90", "B", "I", "UP", "RUF" -] exclude = [ "src/pip_deepfreeze/pip-list-json.py", "src/pip_deepfreeze/env-info-json.py", @@ -70,13 +67,18 @@ exclude = [ ] target-version = "py38" -[tool.ruff.per-file-ignores] +[tool.ruff.lint] +select = [ + "E", "F", "W", "C90", "B", "I", "UP", "RUF" +] + +[tool.ruff.lint.per-file-ignores] "__main__.py" = ["B008"] -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 13 -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["pip_deepfreeze"] combine-as-imports = true