-
-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6ea4b4
commit ac98af3
Showing
3 changed files
with
134 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,8 +125,7 @@ jobs: | |
matrix: | ||
tool: | ||
- 'black' | ||
- 'flake8' | ||
- 'isort' | ||
- 'ruff' | ||
- 'mypy' | ||
|
||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# https://beta.ruff.rs/docs/rules/ | ||
select = [ | ||
# rules from pyflakes | ||
# "F", | ||
|
||
# rules from pycodestyle | ||
# "E", "W", | ||
|
||
# rules from mccabe | ||
# "C90", | ||
|
||
# rules from isort | ||
# "I", | ||
|
||
# rules from pyupgrade | ||
# "UP", | ||
|
||
# rules from flake8-2020 | ||
# "YTT", | ||
|
||
# rules from flake8-annotations | ||
# "ANN", | ||
|
||
# rules from flake8-bandit | ||
# "S", | ||
|
||
# rules from flake8-blind-except | ||
# "BLE", | ||
|
||
# rules from flake8-boolean-trap | ||
# TODO: "FBT", | ||
|
||
# rules from flake8-bugbear | ||
# TODO: "B", | ||
|
||
# rules from flake8-builtins | ||
# TODO: "A", | ||
|
||
# rules from flake8-commas | ||
# "COM", | ||
|
||
# rules from flake8-comprehensions | ||
# "C4", | ||
|
||
# rules from flake8-datetimez | ||
# TODO: "DTZ", | ||
|
||
# rules from flake8-debugger | ||
# "T10", | ||
|
||
# rules from flake8-django | ||
# TODO: "DJ", | ||
|
||
# rules from flake8-errmsg | ||
# "EM", | ||
|
||
# rules from flake8-executable | ||
# TODO: "EXE", | ||
|
||
# rules from flake8-implicit-str-concat | ||
# "ISC", | ||
|
||
# rules from flake8-import-conventions | ||
# "ICN", | ||
|
||
# rules from flake8-logging-format | ||
# TODO: "G", | ||
|
||
# rules from flake8-no-pep420 | ||
# TODO: "INP", | ||
|
||
# rules from flake8-pie | ||
# TODO: "PIE", | ||
|
||
# rules from flake8-print | ||
# "T20", | ||
|
||
# rules from flake8-pyi | ||
# "PYI", | ||
|
||
# rules from flake8-pytest-style | ||
# TODO: "PT", | ||
|
||
# rules from flake8-raise | ||
# "RSE", | ||
|
||
# rules from flake8-return | ||
# TODO: "RET", | ||
|
||
# rules from flake8-self | ||
# TODO: "SLF", | ||
|
||
# rules from flake8-simplify | ||
# "SIM", | ||
|
||
# rules from flake8-tidy-imports | ||
# "TID", | ||
|
||
# rules from flake8-type-checking | ||
# "TCH", | ||
|
||
# rules from flake8-gettext | ||
# "INT", | ||
|
||
# rules from flake8-unused-arguments | ||
# TODO: "ARG", | ||
|
||
# rules from flake8-use-pathlib | ||
# could be enabled easily | ||
# TODO: "PTH", | ||
|
||
# removes unused noqa comments | ||
# "RUF100", | ||
] | ||
|
||
ignore = [ | ||
"COM812", # missing trailing comma, covered by black | ||
"ANN101", # ignore missing type annotation in self parameter | ||
] | ||
|
||
fix = true | ||
|
||
# TODO: enable this when python3.6 will stop being supported, | ||
# from april 2024 https://docs.djangoproject.com/en/4.2/releases/3.2/ | ||
#target-version = "py36" | ||
|
||
#[flake8-tidy-imports] | ||
## Disallow all relative imports. | ||
#ban-relative-imports = "all" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters