Skip to content

Commit

Permalink
Build/add boolean trap ruff rule (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio-desousa authored Oct 17, 2023
1 parent 5813cd2 commit 8cf4eed
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions generators/app/templates/common/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 8cf4eed

Please # to comment.