diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e7b03a19942..ff090685f0c4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.237 + rev: v0.0.241 hooks: - id: ruff args: diff --git a/pyproject.toml b/pyproject.toml index c2caf3df8bb1..affe111ef286 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -276,6 +276,9 @@ ignore = [ [tool.ruff.flake8-pytest-style] fixture-parentheses = false +[tool.ruff.pyupgrade] +keep-runtime-typing = true + [tool.ruff.per-file-ignores] # TODO: these files have functions that are too complex, but flake8's and ruff's diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index 358cff0bf36f..859490015495 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -14,5 +14,5 @@ pycodestyle==2.10.0 pydocstyle==6.2.3 pyflakes==3.0.1 pyupgrade==3.3.1 -ruff==0.0.237 +ruff==0.0.241 yamllint==1.28.0