Skip to content

Commit 0d26449

Browse files
[pre-commit.ci] pre-commit autoupdate (#887)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.14.6](astral-sh/[email protected]) - [github.com/woodruffw/zizmor-pre-commit: v1.12.1 → v1.16.3](zizmorcore/[email protected])
1 parent acc1bc9 commit 0d26449

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ repos:
2626
- id: check-docstring-first
2727

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

3434
- repo: https://github.com/woodruffw/zizmor-pre-commit
35-
rev: v1.12.1
35+
rev: v1.16.3
3636
hooks:
3737
- id: zizmor

src/poetry/core/packages/dependency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def create_from_pep_508(
378378
link = Link(req.url)
379379
else:
380380
path_str = os.path.normpath(os.path.abspath(name)) # noqa: PTH100
381-
p, extras = strip_extras(path_str)
381+
p, _extras = strip_extras(path_str)
382382
if cached_is_dir(p) and (os.path.sep in name or name.startswith(".")):
383383
if not is_python_project(Path(name)):
384384
raise ValueError(

src/poetry/core/packages/utils/link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def ext(self) -> str:
140140

141141
@cached_property
142142
def url_without_fragment(self) -> str:
143-
scheme, netloc, path, query, fragment = urlparse.urlsplit(self.url)
143+
scheme, netloc, path, query, _fragment = urlparse.urlsplit(self.url)
144144
return urlparse.urlunsplit((scheme, netloc, path, query, None))
145145

146146
_egg_fragment_re = re.compile(r"[#&]egg=([^&]*)")

tests/packages/test_directory_dependency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_directory_dependency_is_not_a_python_project(
6464
assert record.levelname == "WARNING"
6565
assert "a Python package" in record.message
6666

67-
with pytest.raises(ValueError, match="not .* a Python package"):
67+
with pytest.raises(ValueError, match=r"not .* a Python package"):
6868
dep.validate(raise_error=True)
6969

7070

0 commit comments

Comments
 (0)