From c2bf85796687170626a555e2c51a50db16b422df Mon Sep 17 00:00:00 2001 From: bigcat88 Date: Fri, 3 Jan 2025 08:31:00 +0200 Subject: [PATCH] annotated what the rule does Signed-off-by: bigcat88 --- ruff.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ruff.toml b/ruff.toml index 6b03f21c..c5564a44 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,17 +1,16 @@ -target-version = "py38" +target-version = "py39" # Disable all rules by default lint.ignore = ["ALL"] -# Enable specific rules +# Enable specific rules, see all rules here: https://docs.astral.sh/ruff/rules/ lint.select = [ "S307", # suspicious-eval-usage "T201", # print-usage "W", # The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names. - # See all rules here: https://docs.astral.sh/ruff/rules/#pyflakes-f "F", - "C408", + "C408", # unnecessary dict(), list() or tuple() calls that can be rewritten as empty literals. ] exclude = ["*.ipynb"]