Skip to content

Commit 18b77b6

Browse files
committed
fix
1 parent 625e61a commit 18b77b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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)