Skip to content

Commit

Permalink
Refactor var names for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Feb 23, 2024
1 parent 57ede17 commit 92c7128
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pip_deepfreeze/req_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def prepare_frozen_reqs_for_upgrade(
frozen_filenames: Iterable[Path],
frozen_requirements_paths: Iterable[Path],
constraints_path: Path,
upgrade_all: bool = False,
to_upgrade: Optional[Iterable[str]] = None,
Expand Down Expand Up @@ -43,10 +43,10 @@ def prepare_frozen_reqs_for_upgrade(
continue
constraints_reqs.append((req_name, in_req))

Check warning on line 44 in src/pip_deepfreeze/req_merge.py

View check run for this annotation

Codecov / codecov/patch

src/pip_deepfreeze/req_merge.py#L44

Added line #L44 was not covered by tests
# 2. emit frozen_reqs unless upgrade_all or it is in to_upgrade
for frozen_filename in frozen_filenames:
if frozen_filename.is_file() and not upgrade_all:
for frozen_requirements_path in frozen_requirements_paths:
if frozen_requirements_path.is_file() and not upgrade_all:
for frozen_req in parse(
str(frozen_filename), recurse=True, reqs_only=True, strict=True
str(frozen_requirements_path), recurse=True, reqs_only=True, strict=True
):
assert isinstance(frozen_req, RequirementLine)
req_name = get_req_name(frozen_req.requirement)
Expand Down

0 comments on commit 92c7128

Please sign in to comment.