-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
429e942
commit 22bdfa3
Showing
3 changed files
with
37 additions
and
3 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
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
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 |
---|---|---|
@@ -1,14 +1,47 @@ | ||
[tool.ruff] | ||
select = [ | ||
"E", | ||
"F", | ||
"E", | ||
"W", | ||
"B", | ||
"I", | ||
# "N", # TODO: fixing these would break public API | ||
"UP", | ||
"YTT", | ||
# "ANN", | ||
# "BLE", | ||
# "FBT", | ||
"B", | ||
# "A", # Conflicts with some django patterns | ||
"C4", | ||
"ISC", | ||
"ICN", | ||
"G", | ||
"INP", | ||
"PIE", | ||
"PYI", | ||
# "PT", # TODO: some tests are not pytest | ||
"Q", | ||
"RSE", | ||
"RET", | ||
# "SIM", # TODO | ||
"TID", | ||
"TCH", | ||
"INT", | ||
"ERA", | ||
"PGH", | ||
"PLE", | ||
"RUF", | ||
] | ||
target-version = "py38" | ||
ignore = [ | ||
"RUF012", # FIXME | ||
] | ||
|
||
[tool.ruff.isort] | ||
force-single-line = true | ||
|
||
[tool.ruff.per-file-ignores] | ||
# Fails with auto-generated migrations. Unsolvable contradiction between ruff and mypy. | ||
# This likely needs to be addressed in Django itself (either use an immutable | ||
# type or annotate these fields as ClassVar) | ||
"testapp/testapp/testmain/migrations/0*.py"= ["RUF012"] |