From ee6773236e4ef672174bb1a8eb9ff2c0b18b8096 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Sat, 4 Feb 2023 21:42:36 +0200 Subject: [PATCH] Update Ruff to 0.0.241 (#87386) Changes: https://github.com/charliermarsh/ruff/compare/v0.0.237...v0.0.241 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 3 +++ requirements_test_pre_commit.txt | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e7b03a1994..ff090685f0c 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 c2caf3df8bb..affe111ef28 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 358cff0bf36..85949001549 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