Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow main with empty args #279

Merged
merged 1 commit into from
May 8, 2023
Merged

allow main with empty args #279

merged 1 commit into from
May 8, 2023

Conversation

k-dominik
Copy link
Contributor

requiring arguments breaks being able to use main as a python entry point. (this also breaks conda recipe currently as conda build tests the entry point)

It seems arguments to main are ... a testing feature here? For testing one could also manipulate sys.argv...

@joshmoore
Copy link
Member

Thanks, @k-dominik. (I'll note my private glee as I saw you forking the repo 😉)

FWIW, this showed up after the last release: #277 (comment)

requiring arguments breaks being able to use `main` as a python entry point.
(this also breaks conda recipe currently as conda build tests the entry point)
@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (b2e9e1c) 84.84% compared to head (7158914) 84.84%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #279   +/-   ##
=======================================
  Coverage   84.84%   84.84%           
=======================================
  Files          13       13           
  Lines        1485     1485           
=======================================
  Hits         1260     1260           
  Misses        225      225           
Impacted Files Coverage Δ
ome_zarr/cli.py 88.60% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@joshmoore joshmoore linked an issue May 8, 2023 that may be closed by this pull request
@joshmoore joshmoore merged commit c660876 into ome:master May 8, 2023
@k-dominik k-dominik deleted the patch-1 branch May 8, 2023 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test suite failure for commit
2 participants