Skip to content

Commit

Permalink
chore: fix ruff error, PLC0206
Browse files Browse the repository at this point in the history
Extracting value from dictionary without calling `.items()`

Even though we're using `keys` ruff complains ...

Signed-off-by: Oz Tiram <[email protected]>
  • Loading branch information
oz123 committed Dec 10, 2024
1 parent ca169fa commit 0a33a5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def build_script(self, name: str, extra_args: list[str] | None = None) -> Script
def update_settings(self, d: dict[str, str | bool]) -> None:
settings = self.settings
changed = False
for new in d:
for new in d.keys(): # noqa: PLC0206
if new not in settings:
settings[new] = d[new]
changed = True
Expand Down
2 changes: 1 addition & 1 deletion pipenv/routines/outdated.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def do_outdated(project, pypi_mirror=None, pre=False, clear=False):
pass
outdated = []
skipped = []
for package in packages:
for package in packages.keys(): # noqa: PLC0206
norm_name = pep423_name(package)
if norm_name in updated_packages:
version = packages[package]
Expand Down

0 comments on commit 0a33a5c

Please sign in to comment.