Bump Ruff to 0.5.0

This commit is contained in:
Adam Turner 2024-07-02 22:46:33 +01:00
parent 21f7006d22
commit 86c51f3bfa
3 changed files with 2 additions and 3 deletions

View File

@ -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}`

View File

@ -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",

View File

@ -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]