Skip to content

Commit

Permalink
Fix invalid platforms in main. (#39)
Browse files Browse the repository at this point in the history
Ensure `pylama` is run in the poetry env:
* .pre-commit-config.yaml : Set pylama `entry` to `poetry run pylama`.

Fix invalid platforms in `main`.
* req2flatpak.py: Handle the case where PlatformFactory might return `None` if a platform could not be passed. 

Authored-by: real-yfprojects <real-yfprojects@users.noreply.github.com>
  • Loading branch information
real-yfprojects committed Feb 28, 2023
1 parent 5b13d44 commit e0183fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
hooks:
- id: pylama
name: pylama
entry: pylama
entry: poetry run pylama
language: system
types: [python]

Expand Down
1 change: 1 addition & 0 deletions req2flatpak.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ def main():
DownloadChooser.wheel_or_sdist(release, platform)
for release in releases
for platform in platforms
if platform
}

# generate flatpak-builder build module
Expand Down

0 comments on commit e0183fd

Please sign in to comment.