Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gsheni committed May 1, 2024
1 parent 0602305 commit 145db41
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def _get_minimum_versions(dependencies, python_version):

if req.name not in min_versions:
min_version = next(
(spec.version for spec in req.specifier if spec.operator in ('>=', '==')), None
(spec.version for spec in req.specifier if spec.operator in ('>=', '==')),
None,
)
if min_version:
min_versions[req.name] = f'{req.name}=={min_version}'
Expand All @@ -91,8 +92,9 @@ def _get_minimum_versions(dependencies, python_version):
existing_version,
)
if new_version > existing_version:
# Change when a valid newer version is found
min_versions[req.name] = f'{req.name}=={new_version}'
min_versions[req.name] = (
f'{req.name}=={new_version}' # Change when a valid newer version is found
)

return list(min_versions.values())

Expand Down

0 comments on commit 145db41

Please sign in to comment.