Skip to content

Commit 1a7a2a6

Browse files
[pre-commit.ci] pre-commit autoupdate (#299)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.1](pre-commit/mirrors-mypy@v1.17.1...v1.18.1) - [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.13.0](astral-sh/ruff-pre-commit@v0.12.12...v0.13.0) * Apply ruff fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 04b49de commit 1a7a2a6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/mirrors-mypy
3-
rev: v1.17.1
3+
rev: v1.18.1
44
hooks:
55
- id: mypy
66
additional_dependencies:
@@ -26,7 +26,7 @@ repos:
2626
- id: blacken-docs
2727

2828
- repo: https://github.com/astral-sh/ruff-pre-commit
29-
rev: v0.12.12
29+
rev: v0.13.0
3030
hooks:
3131
- id: ruff
3232
- id: ruff-format

tests/test_destinations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_write_script(self, destination):
113113
assert file_path.is_file()
114114

115115
file_data = file_path.read_bytes()
116-
name, expected_data = Script(*script_args).generate("/my/python", "posix")
116+
_, expected_data = Script(*script_args).generate("/my/python", "posix")
117117

118118
assert file_data == expected_data
119119
assert record.path == "my_entrypoint"

tests/test_sources.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_rejects_not_okay_name(self, tmp_path):
6767
pass
6868

6969
with (
70-
pytest.raises(ValueError, match="Not a valid wheel filename: .+"),
70+
pytest.raises(ValueError, match=r"Not a valid wheel filename: .+"),
7171
WheelFile.open(str(path)),
7272
):
7373
pass
@@ -233,7 +233,7 @@ def test_rejects_record_missing_hash(self, fancy_wheel):
233233
WheelFile.open(fancy_wheel) as source,
234234
pytest.raises(
235235
WheelFile.validation_error,
236-
match="hash / size of (.+) is not included in RECORD",
236+
match=r"hash / size of (.+) is not included in RECORD",
237237
),
238238
):
239239
source.validate_record(validate_contents=False)
@@ -279,7 +279,7 @@ def test_reject_signature_file_in_record(self, fancy_wheel):
279279
WheelFile.open(fancy_wheel) as source,
280280
pytest.raises(
281281
WheelFile.validation_error,
282-
match="digital signature file (.+) is incorrectly contained in RECORD.",
282+
match=r"digital signature file (.+) is incorrectly contained in RECORD.",
283283
),
284284
):
285285
source.validate_record(validate_contents=False)
@@ -307,7 +307,7 @@ def test_rejects_record_contain_self_hash(self, fancy_wheel):
307307
WheelFile.open(fancy_wheel) as source,
308308
pytest.raises(
309309
WheelFile.validation_error,
310-
match="RECORD file incorrectly contains hash / size.",
310+
match=r"RECORD file incorrectly contains hash / size.",
311311
),
312312
):
313313
source.validate_record(validate_contents=False)
@@ -334,7 +334,7 @@ def test_rejects_record_validation_failed(self, fancy_wheel):
334334
WheelFile.open(fancy_wheel) as source,
335335
pytest.raises(
336336
WheelFile.validation_error,
337-
match="hash / size of (.+) didn't match RECORD",
337+
match=r"hash / size of (.+) didn't match RECORD",
338338
),
339339
):
340340
source.validate_record()

0 commit comments

Comments
 (0)