From 86c51f3bfac16961a184ce1fbe8d65ad021fd4a0 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Tue, 2 Jul 2024 22:46:33 +0100 Subject: [PATCH] Bump Ruff to 0.5.0 --- .ruff.toml | 1 - pyproject.toml | 2 +- tests/test_intl/test_intl.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.ruff.toml b/.ruff.toml index 2632c4ed0..4451e8eb5 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -222,7 +222,6 @@ select = [ # "PLR0912", # Too many branches ({branches} > {max_branches}) # "PLR0913", # Too many arguments to function call ({c_args} > {max_args}) # "PLR0915", # Too many statements ({statements} > {max_statements}) - "PLR1701", # Merge `isinstance` calls: `{expr}` "PLR1711", # Useless `return` statement at end of function # "PLR1714", # Consider merging multiple comparisons: `{expr}`. Use a `set` if the elements are hashable. "PLR1722", # Use `sys.exit()` instead of `{name}` diff --git a/pyproject.toml b/pyproject.toml index bb5eb0741..32d3e1dfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,7 +83,7 @@ docs = [ ] lint = [ "flake8>=3.5.0", - "ruff==0.4.10", + "ruff==0.5.0", "mypy==1.10.1", "sphinx-lint", "types-docutils", diff --git a/tests/test_intl/test_intl.py b/tests/test_intl/test_intl.py index 540af2e62..c0a1569bb 100644 --- a/tests/test_intl/test_intl.py +++ b/tests/test_intl/test_intl.py @@ -1450,7 +1450,7 @@ def test_additional_targets_should_be_translated(app): """# SYS IMPORTING""") assert_count(expected_expr, result, 1) - # '#noqa' should remain in literal blocks. + # 'noqa' comments should remain in literal blocks. assert_count("#noqa", result, 1) # [raw.txt]