Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #3464

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.30.0
rev: 0.31.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
Expand All @@ -23,7 +23,7 @@ repos:
hooks:
- id: validate-pyproject
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.3"
rev: "v0.9.2"
hooks:
- id: ruff-format
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion tests/config/loader/ini/replace/test_replace_tox_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def test_replace_from_tox_section_missing_value(tox_ini_conf: ToxIniCreator) ->
def test_replace_from_section_bad_type(tox_ini_conf: ToxIniCreator) -> None:
conf_a = tox_ini_conf("[testenv:e]\nx = {[m]a}\n[m]\na=w\n").get_env("e")
conf_a.add_config(keys="x", of_type=int, default=1, desc="d")
with pytest.raises(ValueError, match="invalid literal.*w.*"):
with pytest.raises(ValueError, match=r"invalid literal.*w.*"):
assert conf_a["x"]


Expand Down
4 changes: 2 additions & 2 deletions tests/config/loader/test_toml_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_toml_loader_list_ok() -> None:


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


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


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


Expand Down
2 changes: 1 addition & 1 deletion tests/tox_env/python/pip/req/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def test_requirements_file_missing(tmp_path: Path) -> None:
requirements_file = tmp_path / "req.txt"
requirements_file.write_text("-r one.txt")
req_file = RequirementsFile(requirements_file, constraint=False)
with pytest.raises(ValueError, match="No such file or directory: .*one.txt"):
with pytest.raises(ValueError, match=r"No such file or directory: .*one.txt"):
assert req_file.options


Expand Down
Loading