Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active all rules in ruff by default #5356

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading