Skip to content

Commit ad82145

Browse files
[pre-commit.ci] pre-commit autoupdate (#256)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](astral-sh/ruff-pre-commit@v0.8.6...v0.9.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8f2d1e5 commit ad82145

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- id: blacken-docs
2727

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

tests/test_main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def test_get_scheme_dict():
1414
def test_get_scheme_dict_prefix():
1515
d = get_scheme_dict(distribution_name="foo", prefix="/foo")
1616
for key in ("purelib", "platlib", "headers", "scripts", "data"):
17-
assert d[key].startswith(
18-
f"{os.sep}foo"
19-
), f"{key} does not start with /foo: {d[key]}"
17+
assert d[key].startswith(f"{os.sep}foo"), (
18+
f"{key} does not start with /foo: {d[key]}"
19+
)
2020

2121

2222
def test_main(fancy_wheel, tmp_path):
@@ -62,9 +62,9 @@ def test_main_prefix(fancy_wheel, tmp_path):
6262
installed_py_files = list(destdir.rglob("*.py"))
6363

6464
for f in installed_py_files:
65-
assert str(f.parent).startswith(
66-
str(destdir / "foo")
67-
), f"path does not respect destdir+prefix: {f}"
65+
assert str(f.parent).startswith(str(destdir / "foo")), (
66+
f"path does not respect destdir+prefix: {f}"
67+
)
6868
assert {f.stem for f in installed_py_files} == {"__init__", "__main__", "data"}
6969

7070
installed_pyc_files = destdir.rglob("*.pyc")

tools/update_launchers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def _get_distlib_page(client: httpx.AsyncClient) -> Any:
3939

4040
def _get_link_from_response(json_response: dict[str, Any]) -> tuple[str, str] | None:
4141
version = max(version_str.split(".") for version_str in json_response["versions"])
42-
filename = f'distlib-{".".join(version)}.tar.gz'
42+
filename = f"distlib-{'.'.join(version)}.tar.gz"
4343
for file_info in json_response["files"]:
4444
if file_info["filename"] == filename:
4545
return file_info["url"], filename

0 commit comments

Comments
 (0)