From 8cf4eed48170e90e6027d84bee4e7890d96e6003 Mon Sep 17 00:00:00 2001 From: Emilio DE SOUSA Date: Tue, 17 Oct 2023 14:13:13 +0200 Subject: [PATCH] Build/add boolean trap ruff rule (#70) --- .../app/templates/common/pyproject.toml | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/generators/app/templates/common/pyproject.toml b/generators/app/templates/common/pyproject.toml index bc18fbe..64c4024 100644 --- a/generators/app/templates/common/pyproject.toml +++ b/generators/app/templates/common/pyproject.toml @@ -51,22 +51,23 @@ target-version = ['py<%= pythonMajorVersionShortcut %>'] [tool.ruff] target-version = 'py<%= pythonMajorVersionShortcut %>' -# See all rules at https://beta.ruff.rs/docs/rules/ +# See all rules at https://docs.astral.sh/ruff/rules/ select = [ - "E", # pycodestyle - "W", # pycodestyle - "F", # Pyflakes - "B", # flake8-bugbear - "C4", # flake8-comprehensions - "D", # pydocstyle - "I", # isort - "SIM", # flake8-simplify - "TCH", # flake8-type-checking - "TID", # flake8-tidy-imports - "Q", # flake8-quotes - "UP", # pyupgrade - "PT", # flake8-pytest-style - "RUF", # Ruff-specific rules + "E", # pycodestyle + "W", # pycodestyle + "F", # Pyflakes + "B", # flake8-bugbear + "C4", # flake8-comprehensions + "D", # pydocstyle + "I", # isort + "SIM", # flake8-simplify + "TCH", # flake8-type-checking + "TID", # flake8-tidy-imports + "Q", # flake8-quotes + "UP", # pyupgrade + "PT", # flake8-pytest-style + "RUF", # Ruff-specific rules + "FBT001", # flake8-boolean-trap ] ignore = [