Skip to content

Commit a2e141c

Browse files
[pre-commit.ci] pre-commit suggestions (#263)
* [pre-commit.ci] pre-commit suggestions updates: - [github.com/crate-ci/typos: dictgen-v0.3.1 → v1](crate-ci/typos@dictgen-v0.3.1...v1) - [github.com/PyCQA/docformatter: 06907d0267368b49b9180eed423fae5697c1e909 → v1.7.6](PyCQA/docformatter@06907d0...v1.7.6) - [github.com/executablebooks/mdformat: 0.7.21 → 0.7.22](hukkin/mdformat@0.7.21...0.7.22) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.1.0...v4.0.0-alpha.8) - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.11.4](astral-sh/ruff-pre-commit@v0.8.6...v0.11.4) - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](pre-commit/mirrors-mypy@v1.14.1...v1.15.0) - [github.com/tox-dev/pyproject-fmt: v2.5.0 → v2.5.1](tox-dev/pyproject-fmt@v2.5.0...v2.5.1) - [github.com/abravalheri/validate-pyproject: v0.23 → v0.24.1](abravalheri/validate-pyproject@v0.23...v0.24.1) * Apply suggestions from code review * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <[email protected]>
1 parent f906fb8 commit a2e141c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ repos:
2323
- id: detect-private-key
2424

2525
- repo: https://github.com/crate-ci/typos
26-
rev: dictgen-v0.3.1
26+
rev: v1
2727
hooks:
2828
- id: typos
2929
# empty to do not write fixes
3030
args: []
3131

3232
- repo: https://github.com/PyCQA/docformatter
33-
rev: 06907d0267368b49b9180eed423fae5697c1e909 # todo: fix for docformatter after last 1.7.5
33+
rev: v1.7.6
3434
hooks:
3535
- id: docformatter
3636
additional_dependencies: [tomli]
3737
args: ["--in-place"]
3838

3939
- repo: https://github.com/executablebooks/mdformat
40-
rev: 0.7.21
40+
rev: 0.7.22
4141
hooks:
4242
- id: mdformat
4343
additional_dependencies:
@@ -55,7 +55,7 @@ repos:
5555
args: ["--print-width=79"]
5656

5757
- repo: https://github.com/astral-sh/ruff-pre-commit
58-
rev: v0.8.6
58+
rev: v0.11.4
5959
hooks:
6060
# use black formatting
6161
- id: ruff-format
@@ -67,17 +67,17 @@ repos:
6767

6868
# it needs to be after formatting hooks because the lines might be changed
6969
- repo: https://github.com/pre-commit/mirrors-mypy
70-
rev: v1.14.1
70+
rev: v1.15.0
7171
hooks:
7272
- id: mypy
7373
files: "src/*"
7474

7575
- repo: https://github.com/tox-dev/pyproject-fmt
76-
rev: v2.5.0
76+
rev: v2.5.1
7777
hooks:
7878
- id: pyproject-fmt
7979
additional_dependencies: [tox]
8080
- repo: https://github.com/abravalheri/validate-pyproject
81-
rev: v0.23
81+
rev: v0.24.1
8282
hooks:
8383
- id: validate-pyproject

tests/test_general.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,9 @@ def fn_minus(a, b=2):
485485
assert cachier_(dummy_)(1) == expected, f"for {fn.__name__} wrapped"
486486

487487
dummy_ = functools.partial(fn, b=2)
488-
assert (
489-
cachier_(dummy_)(1, b=2) == expected
490-
), f"for {fn.__name__} wrapped"
488+
assert cachier_(dummy_)(1, b=2) == expected, (
489+
f"for {fn.__name__} wrapped"
490+
)
491491

492492
assert cachier_(fn)(1, 2) == expected, f"for {fn.__name__} inline"
493493
assert cachier_(fn)(a=1, b=2) == expected, f"for {fn.__name__} inline"

0 commit comments

Comments
 (0)