Skip to content

Commit 68e92d3

Browse files
[pre-commit.ci] pre-commit suggestions (#276)
* [pre-commit.ci] pre-commit suggestions updates: - [github.com/PyCQA/docformatter: v1.7.6 → v1.7.7](PyCQA/docformatter@v1.7.6...v1.7.7) - [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.11.4 → v0.12.2](astral-sh/ruff-pre-commit@v0.11.4...v0.12.2) - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.1](pre-commit/mirrors-mypy@v1.15.0...v1.16.1) - [github.com/tox-dev/pyproject-fmt: v2.5.1 → v2.6.0](tox-dev/pyproject-fmt@v2.5.1...v2.6.0) * fix bad test name --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shay Palachy <shaypal5@users.noreply.github.com>
1 parent 4d35a18 commit 68e92d3

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
args: []
3131

3232
- repo: https://github.com/PyCQA/docformatter
33-
rev: v1.7.6
33+
rev: v1.7.7
3434
hooks:
3535
- id: docformatter
3636
additional_dependencies: [tomli]
@@ -47,15 +47,15 @@ repos:
4747
args: ["--number"]
4848

4949
- repo: https://github.com/pre-commit/mirrors-prettier
50-
rev: v3.1.0
50+
rev: v4.0.0-alpha.8
5151
hooks:
5252
- id: prettier
5353
files: \.(json|yml|yaml|toml)
5454
# https://prettier.io/docs/en/options.html#print-width
5555
args: ["--print-width=79"]
5656

5757
- repo: https://github.com/astral-sh/ruff-pre-commit
58-
rev: v0.11.4
58+
rev: v0.12.2
5959
hooks:
6060
# use black formatting
6161
- id: ruff-format
@@ -67,13 +67,13 @@ 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.15.0
70+
rev: v1.16.1
7171
hooks:
7272
- id: mypy
7373
files: "src/*"
7474

7575
- repo: https://github.com/tox-dev/pyproject-fmt
76-
rev: v2.5.1
76+
rev: v2.6.0
7777
hooks:
7878
- id: pyproject-fmt
7979
additional_dependencies: [tox]

tests/test_core_lookup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ def test_get_default_params():
2323
]
2424

2525

26-
def test_bad_name(name="nope"):
26+
def test_bad_name():
2727
# Test that the appropriate exception is thrown
2828
# when an invalid backend is given.
29-
with pytest.raises(ValueError, match=f"specified an invalid core: {name}"):
29+
invalid_core = "bad_core"
30+
expctd = f"specified an invalid core: {invalid_core}"
31+
with pytest.raises(ValueError, match=expctd):
3032

31-
@cachier(backend=name)
33+
@cachier(backend=invalid_core)
3234
def dummy_func():
3335
pass
3436

0 commit comments

Comments
 (0)