Skip to content

Commit a25e35b

Browse files
pre-commit: bump repositories (#935)
* pre-commit: bump repositories updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.13.3](astral-sh/ruff-pre-commit@v0.12.12...v0.13.3) * chore: update pre-commit checks Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent 793996c commit a25e35b

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ repos:
2424
rev: 1.20.0
2525
hooks:
2626
- id: blacken-docs
27-
additional_dependencies: [black==23.*]
28-
- repo: https://github.com/pre-commit/mirrors-prettier
29-
rev: "v4.0.0-alpha.8"
27+
additional_dependencies: [black==25.*]
28+
- repo: https://github.com/rbubley/mirrors-prettier
29+
rev: "v3.6.2"
3030
hooks:
3131
- id: prettier
3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: v0.12.12
33+
rev: v0.14.0
3434
hooks:
35-
- id: ruff
35+
- id: ruff-check
3636
args: [--fix, --show-fixes]
3737
- id: ruff-format
3838
- repo: https://github.com/codespell-project/codespell

tests/test_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_venv_executable_missing_post_creation(
6868
mocker: pytest_mock.MockerFixture,
6969
):
7070
venv_create = mocker.patch('venv.EnvBuilder.create')
71-
with pytest.raises(RuntimeError, match='Virtual environment creation failed, executable .* missing'):
71+
with pytest.raises(RuntimeError, match=r'Virtual environment creation failed, executable .* missing'):
7272
with build.env.DefaultIsolatedEnv():
7373
pass
7474
assert venv_create.call_count == 1

tests/test_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_prog():
138138
def test_version(capsys):
139139
with pytest.raises(SystemExit):
140140
build.__main__.main(['--version'])
141-
out, err = capsys.readouterr()
141+
out, _ = capsys.readouterr()
142142
assert out.startswith(f'build {build.__version__}')
143143

144144

@@ -342,7 +342,7 @@ def test_build_package_via_sdist_invalid_distribution(tmp_dir, package_test_setu
342342
@pytest.mark.flaky(reruns=5)
343343
def test_output(package_test_setuptools, tmp_dir, capsys, args, output):
344344
build.__main__.main([package_test_setuptools, '-o', tmp_dir, *args])
345-
stdout, stderr = capsys.readouterr()
345+
stdout, _ = capsys.readouterr()
346346
assert set(stdout.splitlines()) <= set(output)
347347

348348

tests/test_projectbuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def test_build_with_dep_on_console_script(tmp_path, demo_pkg_inline, capfd, mock
424424
with pytest.raises(SystemExit):
425425
main(['--wheel', '--outdir', str(tmp_path / 'dist'), str(tmp_path)])
426426

427-
out, err = capfd.readouterr()
427+
out, _ = capfd.readouterr()
428428
lines = [line[3:] for line in out.splitlines() if line.startswith('BB ')] # filter for our markers
429429
path_vars = lines[0].split(os.pathsep)
430430
which_detected = lines[1]
@@ -469,7 +469,7 @@ def test_prepare_not_dir_outdir(mocker, tmp_dir, package_test_flit):
469469
out = os.path.join(tmp_dir, 'out')
470470
with open(out, 'w', encoding='utf-8') as f:
471471
f.write('Not a directory')
472-
with pytest.raises(build.BuildException, match='Build path .* exists and is not a directory'):
472+
with pytest.raises(build.BuildException, match=r'Build path .* exists and is not a directory'):
473473
builder.prepare('wheel', out)
474474

475475

tests/test_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: MIT
22

33
import importlib.util
4+
import re
45

56
import pytest
67

@@ -32,7 +33,7 @@ def test_wheel_metadata_isolation(package_test_flit):
3233

3334
with pytest.raises(
3435
build.BuildBackendException,
35-
match="Backend 'flit_core.buildapi' is not available.",
36+
match=re.escape("Backend 'flit_core.buildapi' is not available."),
3637
):
3738
build.util.project_wheel_metadata(package_test_flit, isolated=False)
3839

0 commit comments

Comments
 (0)