diff --git a/.ruff.toml b/.ruff.toml index f85b65d0e..1e7d1aa55 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -232,7 +232,7 @@ select = [ # "RUF001", # String contains ambiguous {}. Did you mean {}? "RUF002", # Docstring contains ambiguous {}. Did you mean {}? # "RUF003", # Comment contains ambiguous {}. Did you mean {}? -# "RUF005", # Consider `{expr}` instead of concatenation +# "RUF005", # Consider `{expression}` instead of concatenation "RUF006", # Store a reference to the return value of `asyncio.{method}` "RUF007", # Prefer `itertools.pairwise()` over `zip()` when iterating over successive pairs "RUF008", # Do not use mutable default values for dataclass attributes @@ -242,9 +242,13 @@ select = [ # "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` # "RUF013", # PEP 484 prohibits implicit `Optional` # "RUF015", # Prefer `next({iterable})` over single element slice - "RUF016", # Slice in indexed access to type `{value_type}` uses type `{index_type}` instead of an integer. + "RUF016", # Slice in indexed access to type `{value_type}` uses type `{index_type}` instead of an integer +# "RUF017", # Avoid quadratic list summation + "RUF018", # Avoid assignment expressions in `assert` statements +# "RUF019", # Unnecessary key check before dictionary access + "RUF020", # `{never_like} | T` is equivalent to `T` # "RUF100", # Unused `noqa` directive - "RUF200", # Failed to parse pyproject.toml: {} + "RUF200", # Failed to parse pyproject.toml: {message} # flake8-bandit ('S') # "S101", # Use of `assert` detected "S102", # Use of `exec` detected