From 9df4ffd6695ab79295551dd176ca117d7ad4b6c5 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 2 Aug 2024 11:07:40 +0200 Subject: [PATCH] MAINT: pre-commit autoupdate 2024-07-31 (#651) --- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 4 ++-- tests/test_editable.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b4085a049..647c514af 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-ast - id: check-builtin-literals @@ -21,12 +21,12 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.5 + rev: v0.5.5 hooks: - id: ruff args: [--fix, --show-fixes, --output-format, grouped] - repo: https://github.com/fsfe/reuse-tool - rev: v2.1.0 + rev: v4.0.3 hooks: - id: reuse name: add SPDX headers diff --git a/pyproject.toml b/pyproject.toml index b591a383a..af6814a6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,10 +77,10 @@ strict = true [tool.ruff] line-length = 127 -extend-ignore = [ +lint.extend-ignore = [ 'B019', ] -select = [ +lint.select = [ 'B', # flake8-bugbear 'C4', # flake8-comprehensions 'E', # pycodestyle diff --git a/tests/test_editable.py b/tests/test_editable.py index 9e5b3fd5c..7f51cddc2 100644 --- a/tests/test_editable.py +++ b/tests/test_editable.py @@ -284,7 +284,7 @@ def test_editable_rebuild(package_purelib_and_platlib, tmp_path, verbose, args): # Importing again should result in no output. stdout = io.StringIO() with redirect_stdout(stdout): - import pure # noqa: F401, F811 + import pure # noqa: F401 assert stdout.getvalue() == '' finally: