From 0af5142cbedb783ed2d61c6aa46c4dd9e2790796 Mon Sep 17 00:00:00 2001 From: MarcoGorelli Date: Wed, 1 Mar 2023 07:04:58 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20UPGRADE:=20Autoupdate?= =?UTF-8?q?=20pre-commit=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 576c929c26b9b..e0468aa8137a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: types_or: [python, pyi] additional_dependencies: [black==23.1.0] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.244 + rev: v0.0.253 hooks: - id: ruff - repo: https://github.com/jendrikseipp/vulture @@ -45,7 +45,7 @@ repos: types_or: [python, rst, markdown] additional_dependencies: [tomli] - repo: https://github.com/MarcoGorelli/cython-lint - rev: v0.12.4 + rev: v0.12.5 hooks: - id: cython-lint - id: double-quote-cython-strings @@ -78,12 +78,12 @@ repos: '--filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size' ] - repo: https://github.com/pycqa/pylint - rev: v2.16.1 + rev: v2.16.2 hooks: - id: pylint stages: [manual] - repo: https://github.com/pycqa/pylint - rev: v2.16.1 + rev: v2.16.2 hooks: - id: pylint alias: redefined-outer-name From 2c10d93b8b2ccee79434c251ac9c1cd94513cc1e Mon Sep 17 00:00:00 2001 From: MarcoGorelli <> Date: Wed, 1 Mar 2023 08:20:41 +0000 Subject: [PATCH 2/2] silence new ruff codes --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index baffbd18329ff..192950f3dfb49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -261,12 +261,18 @@ ignore = [ "PLR0912", # Too many statements "PLR0915", + # Global statements are discouraged + "PLW0603", # Additional checks that don't pass yet # Within an except clause, raise exceptions with ... "B904", # Magic number "PLR2004", + # Outer loop variable overwritten by inner assignment + "PLW2901", + # Consider `elif` instead of `else` then `if` to remove indendation level + "PLR5501", ] exclude = [