From fd00db13c5534a548273d839b01714b51aa554a5 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Fri, 16 Oct 2026 11:31:39 +0200 Subject: [PATCH] pyproject: Ignore ICN001 ruff rule Cockpit projects to not adhere to the convention to import datetime as dt. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index f28b270f96..4c1ad4fd3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -158,6 +158,7 @@ ignore = [ "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` "TC001", # Move application import into a type-checking block "TC002", # Move third-party import `..packages.Packages` into a type-checking block + "ICN001", # ignore rule "import datetime as dt" ] [tool.ruff.lint.flake8-pytest-style]