Skip to content

Commit f09d84a

Browse files
[pre-commit.ci] pre-commit autoupdate (#616)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6373167 commit f09d84a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ repos:
3131
- id: black
3232

3333
- repo: https://github.com/astral-sh/ruff-pre-commit
34-
rev: v0.0.278
34+
rev: v0.0.280
3535
hooks:
3636
- id: ruff

src/poetry/core/vcs/git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def remote_urls(self, folder: Path | None = None) -> dict[str, str]:
356356
def remote_url(self, folder: Path | None = None) -> str:
357357
urls = self.remote_urls(folder=folder)
358358

359-
return urls.get("remote.origin.url", urls[list(urls.keys())[0]])
359+
return urls.get("remote.origin.url", urls[next(iter(urls.keys()))])
360360

361361
def run(self, *args: Any, **kwargs: Any) -> str:
362362
folder = kwargs.pop("folder", None)

tests/masonry/builders/test_complete.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_wheel_c_extension(project: str, exptected_c_dir: str) -> None:
6666
assert "extended-0.1/build.py" in tar.getnames()
6767
assert f"extended-0.1/{exptected_c_dir}/extended.c" in tar.getnames()
6868

69-
whl = list((module_path / "dist").glob("extended-0.1-cp*-cp*-*.whl"))[0]
69+
whl = next(iter((module_path / "dist").glob("extended-0.1-cp*-cp*-*.whl")))
7070
assert whl.exists()
7171

7272
with zipfile.ZipFile(whl) as zipf:

0 commit comments

Comments
 (0)