generated from goodbyekansas/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We added ruff but missed some configuration. Added a more to make it pick up problems similarly to the alternative
- Loading branch information
1 parent
88a7171
commit 313de07
Showing
1 changed file
with
40 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,2 +1,41 @@ | ||
[tool.ruff] | ||
select=[ "E4", "E7", "E9", "F", "PLE", "PLW" ] | ||
select=[ | ||
"A", | ||
"ARG", | ||
"BLE", | ||
"C4", | ||
"E", | ||
"E4", | ||
"E7", | ||
"E9", | ||
"EXE", | ||
"F", | ||
"ISC", | ||
"PLC", | ||
"PLE", | ||
"PLW", | ||
"RSE", | ||
"RET", | ||
"S", | ||
"SLF", | ||
"SIM", | ||
"TID", | ||
"UP", | ||
"W", | ||
] | ||
|
||
[tool.ruff.lint] | ||
ignore = [ | ||
"ISC001" # The following rules may cause conflicts when used with the formatter | ||
] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"tests/*" = [ | ||
"SLF001", # Common to access private members in order to mock things. | ||
"S101", # Allowed to use asserts in tests | ||
] | ||
"test_*" = [ | ||
"SLF001", # Common to access private members in order to mock things. | ||
"S101", # Allowed to use asserts in tests | ||
] | ||
|