Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Apr 4, 2024
1 parent b3dc60c commit fb52166
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions komodo/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ def lint(
)
for name, version in release_file.content.items():
# if "depends" in repository_file.content.get(name, {}).get(version, {}):
if "pypi" != repository_file.content.get(name, {}).get(version, {}).get(
"source"
if (
repository_file.content.get(name, {}).get(version, {}).get("source")
!= "pypi"
):
depends = repository_file.content[name][version].get("depends", [])
if depends != []:
Expand Down
2 changes: 1 addition & 1 deletion komodo/pypi_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def satisfied(
Not installed: pyjwt
False
>>> PypiDependencies(to_install={"PyJWT": "2.3.0"}, python_version="3.8").satisfied(
... Requirement("PyJWT[crypto] (<3, >=1.0.0)")
... Requirement("PyJWT (<3, >=1.0.0)")
... )
[...
True
Expand Down

0 comments on commit fb52166

Please sign in to comment.