You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ruff-test.toml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,5 +15,9 @@ ignore = [
15
15
"TRY003", # tests dont need to create a custom exception classes, generally you want to throw an AssertionError with a message anyway
16
16
]
17
17
18
+
unfixable = [
19
+
"SIM117", # pytest.raises context managers should generally be separate from others so they can be very specific about where the error is being raised from, so don't autofix this
20
+
]
21
+
18
22
[lint.flake8-pytest-style]
19
23
raises-require-match-for = ["*"] # ensures we always have a match for our raises statements so that we validate tests fail for the right reason
Copy file name to clipboardExpand all lines: ruff.toml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -69,10 +69,10 @@ ignore = [
69
69
# Allow fix for all enabled rules (when `--fix`) is provided.
70
70
fixable = ["ALL"]
71
71
unfixable = [
72
-
"T201", "T203", # don't automatically delete print statements, just warn about them
73
-
"RUF100", # don't automatically remove unnecessary suppressions, because that can leave behind a now-stale comment about why the suppression was originally added
74
-
"FURB136", "PLR1730", # don't automatically replace if statements with min/max functions. Sometimes the if statement is more readable or better for code coverage checking
75
-
]
72
+
"T201", "T203", # don't automatically delete print statements, just warn about them
73
+
"RUF100", # don't automatically remove unnecessary suppressions, because that can leave behind a now-stale comment about why the suppression was originally added
74
+
"FURB136", "PLR1730", # don't automatically replace if statements with min/max functions. Sometimes the if statement is more readable or better for code coverage checking
75
+
]
76
76
77
77
# Allow unused variables if it's an underscore or double underscore.
78
78
dummy-variable-rgx = "^_$|^__$"
@@ -87,7 +87,7 @@ dummy-variable-rgx = "^_$|^__$"
87
87
force-single-line = true
88
88
89
89
[lint.flake8-builtins]
90
-
builtins-ignorelist = ["id"] # We use the id() builtin little enough that it's okay to shadow it
90
+
builtins-ignorelist = ["id"] # We use the id() builtin rarely enough that it's okay to shadow it
91
91
92
92
[lint.flake8-annotations]
93
93
mypy-init-return = true# we don't care about annotating all __init__ methods as returning None
Copy file name to clipboardExpand all lines: template/ruff-test.toml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,5 +15,9 @@ ignore = [
15
15
"TRY003", # tests dont need to create a custom exception classes, generally you want to throw an AssertionError with a message anyway
16
16
]
17
17
18
+
unfixable = [
19
+
"SIM117", # pytest.raises context managers should generally be separate from others so they can be very specific about where the error is being raised from, so don't autofix this
20
+
]
21
+
18
22
[lint.flake8-pytest-style]
19
23
raises-require-match-for = ["*"] # ensures we always have a match for our raises statements so that we validate tests fail for the right reason
Copy file name to clipboardExpand all lines: template/ruff.toml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -69,10 +69,10 @@ ignore = [
69
69
# Allow fix for all enabled rules (when `--fix`) is provided.
70
70
fixable = ["ALL"]
71
71
unfixable = [
72
-
"T201", "T203", # don't automatically delete print statements, just warn about them
73
-
"RUF100", # don't automatically remove unnecessary suppressions, because that can leave behind a now-stale comment about why the suppression was originally added
74
-
"FURB136", "PLR1730", # don't automatically replace if statements with min/max functions. Sometimes the if statement is more readable or better for code coverage checking
75
-
]
72
+
"T201", "T203", # don't automatically delete print statements, just warn about them
73
+
"RUF100", # don't automatically remove unnecessary suppressions, because that can leave behind a now-stale comment about why the suppression was originally added
74
+
"FURB136", "PLR1730", # don't automatically replace if statements with min/max functions. Sometimes the if statement is more readable or better for code coverage checking
75
+
]
76
76
77
77
# Allow unused variables if it's an underscore or double underscore.
78
78
dummy-variable-rgx = "^_$|^__$"
@@ -87,7 +87,7 @@ dummy-variable-rgx = "^_$|^__$"
87
87
force-single-line = true
88
88
89
89
[lint.flake8-builtins]
90
-
builtins-ignorelist = ["id"] # We use the id() builtin little enough that it's okay to shadow it
90
+
builtins-ignorelist = ["id"] # We use the id() builtin rarely enough that it's okay to shadow it
91
91
92
92
[lint.flake8-annotations]
93
93
mypy-init-return = true# we don't care about annotating all __init__ methods as returning None
0 commit comments