Skip to content

Commit

Permalink
Enable new RUF rules
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Dec 1, 2024
1 parent e739368 commit a843532
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ select = [
"RUF032", # `Decimal()` called with float literal argument
"RUF033", # `__post_init__` method with argument defaults
"RUF034", # Useless `if`-`else` condition
"RUF035", # Unsafe use of `{name}` detected
# "RUF036", # `None` not at the end of the type annotation.
"RUF038", # `Literal[True, False, ...]` can be replaced with `Literal[...] | bool`
# "RUF039", # First argument to {call} is not raw string
"RUF040", # Non-string literal used as assert message
"RUF041", # Unnecessary nested `Literal`
# "RUF048", # `__version__` may contain non-integral-like elements
"RUF055", # Plain string pattern passed to `re` function
# "RUF100", # Unused `noqa` directive
"RUF101", # `{original}` is a redirect to `{target}`
"RUF200", # Failed to parse pyproject.toml: {message}
Expand Down

0 comments on commit a843532

Please sign in to comment.