From 481558c5d7fcbec0d43dd0a79a88b17822962c17 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Tue, 12 May 2026 09:16:10 +0200 Subject: [PATCH] stricter Ruff rules, matching https://github.com/fjosw/pyerrors/pull/282 --- pyproject.toml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index faf7e6c..02d5a7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,13 +26,17 @@ include = ["corrlib", "corrlib.*"] [tool.setuptools_scm] write_to = "corrlib/version.py" +[tool.ruff] +target-version = "py310" + [tool.ruff.lint] -ignore = ["E501"] -extend-select = [ - "YTT", - "E", - "W", - "F", +extend-select = ["E", "W", "I", "B", "PIE", "PLE", "PLW", "UP", "NPY", "RUF"] +ignore = [ + "F403", # star imports in __init__ files are intentional + "E501", # line too long + "PLC0415", # import outside top level + "PLW2901", # redefined loop name (too noisy) + "RUF002", # ambiguous unicode in docstrings (Greek letters) ] [tool.mypy]