Skip to content

Commit f987ac0

Browse files
committed
fix
1 parent ecb18d9 commit f987ac0

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "weekly"
8+
cooldown:
9+
default-days: 7
810
labels:
911
- "area/ci"
1012

@@ -17,6 +19,8 @@ updates:
1719
directory: "/"
1820
schedule:
1921
interval: "monthly"
22+
cooldown:
23+
default-days: 7
2024
labels:
2125
- "area/project/deps"
2226
groups:

src/poetry/repositories/link_sources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def link_package_data(cls, link: Link) -> Package | None:
7676
name = m.group("name")
7777
version_string = m.group("ver")
7878
else:
79-
info, ext = link.splitext()
79+
info, _ext = link.splitext()
8080
match = cls.VERSION_REGEX.match(info)
8181
if match:
8282
name = match.group(1)

src/poetry/utils/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def _get_win_folder_from_registry(csidl_name: str) -> str:
308308
_winreg.HKEY_CURRENT_USER,
309309
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",
310310
)
311-
dir, type = _winreg.QueryValueEx(key, shell_folder_name)
311+
dir, _type = _winreg.QueryValueEx(key, shell_folder_name)
312312

313313
assert isinstance(dir, str)
314314
return dir

tests/config/test_dict_config_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ def test_dict_config_source_get_property_should_raise_if_not_found() -> None:
6363
config_source = DictConfigSource()
6464

6565
with pytest.raises(
66-
PropertyNotFoundError, match="Key virtualenvs.use-poetry-python not in config"
66+
PropertyNotFoundError, match=r"Key virtualenvs\.use-poetry-python not in config"
6767
):
6868
_ = config_source.get_property("virtualenvs.use-poetry-python")

tests/config/test_file_config_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ def test_file_config_source_get_property_should_raise_if_not_found(
8686
config_source = FileConfigSource(TOMLFile(config))
8787

8888
with pytest.raises(
89-
PropertyNotFoundError, match="Key virtualenvs.use-poetry-python not in config"
89+
PropertyNotFoundError, match=r"Key virtualenvs\.use-poetry-python not in config"
9090
):
9191
_ = config_source.get_property("virtualenvs.use-poetry-python")

tests/console/test_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_application_verify_cache_flag_at_install(
185185
# The third call is the default authenticator, which ignores the cache flag.
186186
assert spy.call_count == 3
187187
for call in spy.mock_calls[:2]:
188-
(name, args, kwargs) = call
188+
(_name, _args, kwargs) = call
189189
assert "disable_cache" in kwargs
190190
assert disable_cache is kwargs["disable_cache"]
191191

tests/packages/test_locker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def test_locker_should_raise_an_error_if_lock_version_is_newer_and_not_allowed(
935935
with open(locker.lock, "w", encoding="utf-8") as f:
936936
f.write(content)
937937

938-
with pytest.raises(RuntimeError, match="^The lock file is not compatible"):
938+
with pytest.raises(RuntimeError, match=r"^The lock file is not compatible"):
939939
_ = locker.lock_data
940940

941941

@@ -953,7 +953,7 @@ def test_locker_should_raise_an_error_if_no_lock_version(
953953
with open(locker.lock, "w", encoding="utf-8") as f:
954954
f.write(content)
955955

956-
with pytest.raises(RuntimeError, match="^The lock file is not compatible"):
956+
with pytest.raises(RuntimeError, match=r"^The lock file is not compatible"):
957957
_ = locker.lock_data
958958

959959

0 commit comments

Comments
 (0)