From d46d82defc9e13d5c91170678f8474765daf09ad Mon Sep 17 00:00:00 2001 From: Damien Garros Date: Fri, 3 Jan 2025 07:04:12 +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 ff1f58e7e5..1ce88262d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -427,40 +427,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 + "COM812", # missing-trailing-comma + + ################################################################################################## + # Rules below needs to be Investigated # + ################################################################################################## + "FA", # flake8-future-annotations + "ARG", # flake8-unused-arguments + "PT", # flake8-pytest-style + "PGH", # pygrep-hooks + "ERA", # eradicate commented-out code + "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 + "RSE", # flake8-raise + "BLE", # flake8-blind-except (BLE) + "A", # flake8-builtins + "PD", # pandas-vet + "FAST002", # FastAPI dependency without `Annotated` ################################################################################################## # The ignored rules below should be removed once the code has been updated, they are included #