Skip to content

Commit

Permalink
Merge pull request #5356 from opsmill/dga-20250103-ruff-all
Browse files Browse the repository at this point in the history
Active all rules in ruff by default
  • Loading branch information
dgarros authored Jan 3, 2025
2 parents 36f6fe0 + d46d82d commit 74fbae0
Showing 1 changed file with 29 additions and 32 deletions.
61 changes: 29 additions & 32 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
Expand Down

0 comments on commit 74fbae0

Please sign in to comment.