From 0b2eaf6e286a820a7766f08e56c8256019d87c40 Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" <yanghaoyu97@outlook.com> Date: Thu, 6 Mar 2025 17:10:19 +0100 Subject: [PATCH] enable I001 ruff rule --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 698b09fa88..a51ecf825c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -154,6 +154,7 @@ indent-width = 4 select = [ "E", # pycodestyle "F401", # remove unused import + "I001", # sort imports "PL", # pylint "UP", # pyupgrade "W", # pycodestyle @@ -174,9 +175,10 @@ ignore = [ "PLR5501", # else-if-used ] fixable = ["ALL"] +isort.split-on-trailing-comma = false [tool.ruff.lint.extend-per-file-ignores] -"__init__.py" = ["F401"] +"__init__.py" = ["F401", "I001"] "nomad/app/v1/models/graph/utils.py" = [ "UP007", ] # causes pydantic model building errors -- GitLab