From 87ff9c2e424d389f4497264e8d26ca20b41e91b4 Mon Sep 17 00:00:00 2001 From: Abel Aoun Date: Thu, 28 Dec 2023 18:18:21 +0100 Subject: [PATCH] MAINT: Ignore some rules for tests --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f2d1f9f5..dea6e698 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -143,3 +143,10 @@ ignore = [ [tool.ruff.lint.pydocstyle] convention = "numpy" + +[tool.ruff.per-file-ignores] +"tests/**/*.py" = [ + "S101", # Allow asserts allowed in tests. + "ARG", # Allow unused function args for tests fixtures. + "FBT" # Allow booleans as positional arguments in tests. +]