From b8c39808bd1d7a0a8024e331d8af14c30d8f62a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20Kir=C3=A1ly?= Date: Tue, 22 Oct 2024 10:26:28 +0200 Subject: [PATCH] [MNT] `ruff` linting - allow use of assert (S101) (#1701) Currently, pre-commit trips over uses of `assert` which exist in non-test code across the code base. This is often discouraged, but a de-facto part of the current code base, so for now we should simply skip the corresponding linting rule. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 44ce577e..881063b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,7 @@ extend-ignore = [ "C408", # Unnecessary dict call - rewrite as a literal. "C409", # Unnecessary list passed to tuple() - rewrite as a tuple literal. "F401", # unused imports + "S101", # use of assert ] [tool.ruff.lint.isort]