mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Bump Ruff to 0.5.0
This commit is contained in:
parent
21f7006d22
commit
86c51f3bfa
@ -222,7 +222,6 @@ select = [
|
|||||||
# "PLR0912", # Too many branches ({branches} > {max_branches})
|
# "PLR0912", # Too many branches ({branches} > {max_branches})
|
||||||
# "PLR0913", # Too many arguments to function call ({c_args} > {max_args})
|
# "PLR0913", # Too many arguments to function call ({c_args} > {max_args})
|
||||||
# "PLR0915", # Too many statements ({statements} > {max_statements})
|
# "PLR0915", # Too many statements ({statements} > {max_statements})
|
||||||
"PLR1701", # Merge `isinstance` calls: `{expr}`
|
|
||||||
"PLR1711", # Useless `return` statement at end of function
|
"PLR1711", # Useless `return` statement at end of function
|
||||||
# "PLR1714", # Consider merging multiple comparisons: `{expr}`. Use a `set` if the elements are hashable.
|
# "PLR1714", # Consider merging multiple comparisons: `{expr}`. Use a `set` if the elements are hashable.
|
||||||
"PLR1722", # Use `sys.exit()` instead of `{name}`
|
"PLR1722", # Use `sys.exit()` instead of `{name}`
|
||||||
|
@ -83,7 +83,7 @@ docs = [
|
|||||||
]
|
]
|
||||||
lint = [
|
lint = [
|
||||||
"flake8>=3.5.0",
|
"flake8>=3.5.0",
|
||||||
"ruff==0.4.10",
|
"ruff==0.5.0",
|
||||||
"mypy==1.10.1",
|
"mypy==1.10.1",
|
||||||
"sphinx-lint",
|
"sphinx-lint",
|
||||||
"types-docutils",
|
"types-docutils",
|
||||||
|
@ -1450,7 +1450,7 @@ def test_additional_targets_should_be_translated(app):
|
|||||||
"""<span class="c1"># SYS IMPORTING</span>""")
|
"""<span class="c1"># SYS IMPORTING</span>""")
|
||||||
assert_count(expected_expr, result, 1)
|
assert_count(expected_expr, result, 1)
|
||||||
|
|
||||||
# '#noqa' should remain in literal blocks.
|
# 'noqa' comments should remain in literal blocks.
|
||||||
assert_count("#noqa", result, 1)
|
assert_count("#noqa", result, 1)
|
||||||
|
|
||||||
# [raw.txt]
|
# [raw.txt]
|
||||||
|
Loading…
Reference in New Issue
Block a user