From f28e82940c22fecef5140b1d6c7853c33ffb5e58 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 20:21:29 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.11.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.6...v0.11.2) - [github.com/sourcery-ai/sourcery: v1.34.0 → v1.35.0](https://github.com/sourcery-ai/sourcery/compare/v1.34.0...v1.35.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 06db0df..d73bce0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: - id: sort-simple-yaml - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.6 + rev: v0.11.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -40,7 +40,7 @@ repos: args: ["--config-file", "pyproject.toml", "--ignore-missing-imports"] #args: [--strict, --ignore-missing-imports] - repo: https://github.com/sourcery-ai/sourcery - rev: v1.34.0 + rev: v1.35.0 hooks: - id: sourcery # The best way to use Sourcery in a pre-commit hook: From 9412df690920da6dde36291c9022166dd578b86c Mon Sep 17 00:00:00 2001 From: Nathan Patton Date: Tue, 1 Apr 2025 21:33:17 -0500 Subject: [PATCH 2/2] ignore ARG004 (Unused static method argument: kwargs) --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0a13695..22e2d57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -96,8 +96,8 @@ ignore = [ "docs/source/conf.py" = ["A001", "E501"] "pythonbible/__init__.py" = ["F401"] "pythonbible/bible/bible.py" = ["PLR0913", "FBT"] -"pythonbible/books.py" = ["ARG003", "PYI034"] -"pythonbible/book_groups.py" = ["ARG003", "PYI034"] +"pythonbible/books.py" = ["ARG003", "ARG004", "PYI034"] +"pythonbible/book_groups.py" = ["ARG003", "ARG004", "PYI034"] "pythonbible/counters/book_counter.py" = ["TCH001"] "pythonbible/counters/chapter_counter.py" = ["TCH001"] "pythonbible/counters/verse_counter.py" = ["TCH001"] @@ -105,7 +105,7 @@ ignore = [ "pythonbible/formatter.py" = ["A005", "ANN401", "FBT", "PLR0911"] "pythonbible/parser.py" = ["A005", "PLR2004"] "pythonbible/roman_numeral_util.py" = ["E741"] -"pythonbible/versions.py" = ["ARG003", "PYI034"] +"pythonbible/versions.py" = ["ARG003", "ARG004", "PYI034"] "tests/*.py" = ["D100", "D103", "D104", "PLR2004", "S101", "TRY301"] "tests/conftest.py" = ["E501", "RUF"] "tests/errors_test.py" = ["PT017"]