mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Update RUF rules list
This commit is contained in:
parent
9d6667d8f7
commit
7e7b3def82
10
.ruff.toml
10
.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
|
||||
|
Loading…
Reference in New Issue
Block a user