From 6648144fd41e70199ba5a8a03c80c3919f5e0b91 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 20:13:23 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/crate-ci/typos: dictgen-v0.3.1 → v1](https://github.com/crate-ci/typos/compare/dictgen-v0.3.1...v1) - [github.com/PyCQA/docformatter: 06907d0267368b49b9180eed423fae5697c1e909 → v1.7.5](https://github.com/PyCQA/docformatter/compare/06907d0267368b49b9180eed423fae5697c1e909...v1.7.5) - [github.com/executablebooks/mdformat: 0.7.21 → 0.7.22](https://github.com/executablebooks/mdformat/compare/0.7.21...0.7.22) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.11.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.11.4) - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.1...v1.15.0) - [github.com/tox-dev/pyproject-fmt: v2.5.0 → v2.5.1](https://github.com/tox-dev/pyproject-fmt/compare/v2.5.0...v2.5.1) - [github.com/abravalheri/validate-pyproject: v0.23 → v0.24.1](https://github.com/abravalheri/validate-pyproject/compare/v0.23...v0.24.1) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 817a260..02379db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,21 +23,21 @@ repos: - id: detect-private-key - repo: https://github.com/crate-ci/typos - rev: dictgen-v0.3.1 + rev: v1 hooks: - id: typos # empty to do not write fixes args: [] - repo: https://github.com/PyCQA/docformatter - rev: 06907d0267368b49b9180eed423fae5697c1e909 # todo: fix for docformatter after last 1.7.5 + rev: v1.7.5 # todo: fix for docformatter after last 1.7.5 hooks: - id: docformatter additional_dependencies: [tomli] args: ["--in-place"] - repo: https://github.com/executablebooks/mdformat - rev: 0.7.21 + rev: 0.7.22 hooks: - id: mdformat additional_dependencies: @@ -47,7 +47,7 @@ repos: args: ["--number"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier files: \.(json|yml|yaml|toml) @@ -55,7 +55,7 @@ repos: args: ["--print-width=79"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.11.4 hooks: # use black formatting - id: ruff-format @@ -67,17 +67,17 @@ repos: # it needs to be after formatting hooks because the lines might be changed - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.14.1 + rev: v1.15.0 hooks: - id: mypy files: "src/*" - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.5.0 + rev: v2.5.1 hooks: - id: pyproject-fmt additional_dependencies: [tox] - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.23 + rev: v0.24.1 hooks: - id: validate-pyproject From bdc7b77c51291c96654b1b0ed36f820f9e7664d5 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Wed, 28 May 2025 14:24:24 +0200 Subject: [PATCH 2/3] Apply suggestions from code review --- .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 02379db..8113c4f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: args: [] - repo: https://github.com/PyCQA/docformatter - rev: v1.7.5 # todo: fix for docformatter after last 1.7.5 + rev: v1.7.6 hooks: - id: docformatter additional_dependencies: [tomli] @@ -47,7 +47,7 @@ repos: args: ["--number"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v4.0.0-alpha.8 + rev: v3.1.0 hooks: - id: prettier files: \.(json|yml|yaml|toml) From 67dbc7d2ad7348bc9abcf4af7bf688f4a66f5641 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 12:24:40 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_general.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_general.py b/tests/test_general.py index ff2cbce..b7a12f1 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -485,9 +485,9 @@ def fn_minus(a, b=2): assert cachier_(dummy_)(1) == expected, f"for {fn.__name__} wrapped" dummy_ = functools.partial(fn, b=2) - assert ( - cachier_(dummy_)(1, b=2) == expected - ), f"for {fn.__name__} wrapped" + assert cachier_(dummy_)(1, b=2) == expected, ( + f"for {fn.__name__} wrapped" + ) assert cachier_(fn)(1, 2) == expected, f"for {fn.__name__} inline" assert cachier_(fn)(a=1, b=2) == expected, f"for {fn.__name__} inline"