From e1dc28ffab77e336d6c84ae484633d804e58ca9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammet=20=C5=9Eafak?= Date: Thu, 3 Dec 2026 13:51:21 +0300 Subject: [PATCH] build(deps-dev): pin ruff rule set and allow ruff <0.18 Spell out the rule set ruff 0.15 applied by default (E4, E7, E9, F) so newer ruff releases cannot widen it silently, then raise the dev upper bound to <0.18. Lint behaviour is unchanged. --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b2133ee..cbaa410 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ otel = ["opentelemetry-api>=1.20"] gdpr = ["cryptography>=42"] celery = ["celery>=5"] django = ["django>=4.2"] -dev = ["pytest>=7", "pytest-cov>=4", "mypy>=1.8", "ruff>=0.5,<0.16"] +dev = ["pytest>=7", "pytest-cov>=4", "mypy>=1.8", "ruff>=0.5,<0.18"] [project.urls] Homepage = "https://babelqueue.com" @@ -57,6 +57,13 @@ packages = ["src/babelqueue"] target-version = "py39" line-length = 100 +[tool.ruff.lint] +# Pinned explicitly: this is ruff 0.15's effective default rule set. Newer ruff +# releases (0.17+) widened the implicit default, which broke `ruff check` with +# hundreds of style findings; spelling the set out keeps lint stable across the +# supported ruff range. Do not widen without a deliberate cleanup pass. +select = ["E4", "E7", "E9", "F"] + [tool.mypy] # Lowest target mypy accepts; the package itself still supports Python 3.9 at # runtime (requires-python >=3.9) and uses only 3.9-compatible typing.