Skip to content

Commit a843532

Browse files
committed
Enable new RUF rules
1 parent e739368 commit a843532

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.ruff.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,14 @@ select = [
250250
"RUF032", # `Decimal()` called with float literal argument
251251
"RUF033", # `__post_init__` method with argument defaults
252252
"RUF034", # Useless `if`-`else` condition
253+
"RUF035", # Unsafe use of `{name}` detected
254+
# "RUF036", # `None` not at the end of the type annotation.
255+
"RUF038", # `Literal[True, False, ...]` can be replaced with `Literal[...] | bool`
256+
# "RUF039", # First argument to {call} is not raw string
257+
"RUF040", # Non-string literal used as assert message
258+
"RUF041", # Unnecessary nested `Literal`
259+
# "RUF048", # `__version__` may contain non-integral-like elements
260+
"RUF055", # Plain string pattern passed to `re` function
253261
# "RUF100", # Unused `noqa` directive
254262
"RUF101", # `{original}` is a redirect to `{target}`
255263
"RUF200", # Failed to parse pyproject.toml: {message}

0 commit comments

Comments
 (0)