From 867c192df7c9b34430bc0f350c183e7a7c8b66e0 Mon Sep 17 00:00:00 2001 From: Damien Garros Date: Wed, 1 Jan 2025 15:20:26 +0100 Subject: [PATCH] Active all rules in Ruff by default --- pyproject.toml | 61 ++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 49e7c11e..6d21d410 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -209,40 +209,37 @@ preview = true task-tags = ["FIXME", "TODO", "XXX"] -select = [ - "ANN", # flake8-annotations - "ASYNC", # flake8-async - "B", # flake8-bugbear - "C4", # flake8-comprehensions - "C90", # mccabe complexity - "DJ", # flake8-django - "DTZ", # flake8-datetimez - "E", # pycodestyle errors - "EXE", # flake8-executable - "F", # pyflakes - "FURB", # refurb - "I", # isort-like checks - "ICN", # flake8-import-conventions - "INP", # flake8-no-pep420 - "N", # pep8-naming - "PERF", # Perflint - "PIE", # flake8-pie - "PL", # pylint - "PTH", # flake8-use-pathlib - "PYI", # flake8-pyi - "Q", # flake8-quotes - "RET", # flake8-return - "RUF", # Ruff specific rules - "S", # flake8-bandit - "SIM", # flake8-simplify - "TCH", # flake8-type-checking - "T10", # flake8-debugger - "UP", # pyupgrade - "W", # pycodestyle warnings - "YTT", # flake8-2020 -] +select = ["ALL"] ignore = [ + "D", # pydocstyle + "DOC", # pydoclint + "CPY", # flake8-copyright + "T201", # use of `print` + "ISC", # flake8-implicit-str-concat + + ################################################################################################## + # Rules below needs to be Investigated # + ################################################################################################## + "COM", # flake8-commas + "ARG", # flake8-unused-arguments + "PT", # flake8-pytest-style + "PGH", # pygrep-hooks + "ERA", # eradicate commented-out code + "FA", # flake8-future-annotations + "SLF001", # flake8-self + "EM", # flake8-errmsg + "TRY", # tryceratops + "TD", # flake8-todos + "FIX", # flake8-fixme + "TID", # flake8-tidy-imports + "FBT", # flake8-boolean-trap + "G", # flake8-logging-format + "FLY", # flynt + "RSE", # flake8-raise + "BLE", # flake8-blind-except (BLE) + "A", # flake8-builtins + ################################################################################################## # The ignored rules below should be removed once the code has been updated, they are included # # like this so that we can reactivate them one by one. Alternatively ignored after further #