From b7c56fcb605ac1b2716d1c967427cff86711ca0a Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:08:07 +0100 Subject: [PATCH] ENH: disable `RUF069` on `tests/*` directory --- .pre-commit-config.yaml | 2 +- pyproject.toml | 1 + src/compwa_policy/check_dev_files/ruff.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9e213d83..85681983 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.0 + rev: v0.15.1 hooks: - id: ruff-check args: [--fix] diff --git a/pyproject.toml b/pyproject.toml index 10f9d56d..875e2407 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -352,6 +352,7 @@ split-on-trailing-comma = false "PLC2701", "PLR2004", "PLR6301", + "RUF069", "S101", "SLF001", "T20", diff --git a/src/compwa_policy/check_dev_files/ruff.py b/src/compwa_policy/check_dev_files/ruff.py index f0e3b3a1..ed5cebc7 100644 --- a/src/compwa_policy/check_dev_files/ruff.py +++ b/src/compwa_policy/check_dev_files/ruff.py @@ -414,6 +414,7 @@ def __update_per_file_ignores( "D", # no need for pydocstyle "FBT001", # don't force booleans as keyword arguments "INP001", # allow implicit-namespace-package + "RUF069", # float-equality-comparison "PLC2701", # private module imports "PLR2004", # magic-value-comparison "PLR6301", # allow non-static method