mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Enable the entire PERF category in Ruff
This commit is contained in:
parent
8351d0f57e
commit
0d7ba8faa6
@ -32,6 +32,8 @@ ignore = [
|
|||||||
# refurb
|
# refurb
|
||||||
"FURB101", # `open` and `read` should be replaced by `Path(...).read_text(...)`
|
"FURB101", # `open` and `read` should be replaced by `Path(...).read_text(...)`
|
||||||
"FURB103", # `open` and `write` should be replaced by `Path(...).write_text(...)`
|
"FURB103", # `open` and `write` should be replaced by `Path(...).write_text(...)`
|
||||||
|
# perflint
|
||||||
|
"PERF203", # `try`-`except` within a loop incurs performance overhead
|
||||||
# pylint
|
# pylint
|
||||||
"PLC1901", # simplify truthy/falsey string comparisons
|
"PLC1901", # simplify truthy/falsey string comparisons
|
||||||
# flake8-simplify
|
# flake8-simplify
|
||||||
@ -159,12 +161,7 @@ select = [
|
|||||||
# pandas-vet ('PD')
|
# pandas-vet ('PD')
|
||||||
# Pandas is not used in Sphinx
|
# Pandas is not used in Sphinx
|
||||||
# perflint ('PERF')
|
# perflint ('PERF')
|
||||||
"PERF101", # Do not cast an iterable to `list` before iterating over it
|
"PERF",
|
||||||
"PERF102", # When using only the {subset} of a dict use the `{subset}()` method
|
|
||||||
# "PERF203", # `try`-`except` within a loop incurs performance overhead
|
|
||||||
"PERF401", # Use a list comprehension to create a transformed list
|
|
||||||
"PERF402", # Use `list` or `list.copy` to create a copy of a list
|
|
||||||
"PERF403", # Use a dictionary comprehension instead of a for-loop
|
|
||||||
# pygrep-hooks ('PGH')
|
# pygrep-hooks ('PGH')
|
||||||
"PGH",
|
"PGH",
|
||||||
# flake8-pie ('PIE')
|
# flake8-pie ('PIE')
|
||||||
|
Loading…
Reference in New Issue
Block a user