Skip to content

Commit bbd9663

Browse files
[pre-commit.ci] pre-commit autoupdate (#3464)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.0](python-jsonschema/check-jsonschema@0.30.0...0.31.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.9.2](astral-sh/ruff-pre-commit@v0.8.3...v0.9.2) * Fix failures Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net> --------- Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor <bgabor8@bloomberg.net>
1 parent 825c68b commit bbd9663

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.30.0
8+
rev: 0.31.0
99
hooks:
1010
- id: check-github-workflows
1111
args: ["--verbose"]
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: validate-pyproject
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.8.3"
26+
rev: "v0.9.2"
2727
hooks:
2828
- id: ruff-format
2929
- id: ruff

tests/config/loader/ini/replace/test_replace_tox_env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def test_replace_from_tox_section_missing_value(tox_ini_conf: ToxIniCreator) ->
189189
def test_replace_from_section_bad_type(tox_ini_conf: ToxIniCreator) -> None:
190190
conf_a = tox_ini_conf("[testenv:e]\nx = {[m]a}\n[m]\na=w\n").get_env("e")
191191
conf_a.add_config(keys="x", of_type=int, default=1, desc="d")
192-
with pytest.raises(ValueError, match="invalid literal.*w.*"):
192+
with pytest.raises(ValueError, match=r"invalid literal.*w.*"):
193193
assert conf_a["x"]
194194

195195

tests/config/loader/test_toml_loader.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_toml_loader_list_ok() -> None:
6363

6464

6565
def test_toml_loader_list_nok() -> None:
66-
with pytest.raises(TypeError, match="{} is not list"):
66+
with pytest.raises(TypeError, match=r"{} is not list"):
6767
perform_load({}, List[str])
6868

6969

@@ -77,7 +77,7 @@ def test_toml_loader_dict_ok() -> None:
7777

7878

7979
def test_toml_loader_dict_nok() -> None:
80-
with pytest.raises(TypeError, match="{'a'} is not dictionary"):
80+
with pytest.raises(TypeError, match=r"{'a'} is not dictionary"):
8181
perform_load({"a"}, Dict[str, str])
8282

8383

tests/tox_env/python/pip/req/test_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def test_requirements_file_missing(tmp_path: Path) -> None:
401401
requirements_file = tmp_path / "req.txt"
402402
requirements_file.write_text("-r one.txt")
403403
req_file = RequirementsFile(requirements_file, constraint=False)
404-
with pytest.raises(ValueError, match="No such file or directory: .*one.txt"):
404+
with pytest.raises(ValueError, match=r"No such file or directory: .*one.txt"):
405405
assert req_file.options
406406

407407

0 commit comments

Comments
 (0)