Closed benoit74 closed 1 year ago
Patch and project coverage have no change.
Comparison is base (
0010546
) 100.00% compared to head (5d7a537
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Sorry for the force-push a bit late, but I realized that I made a mistake
PR name is not very useful neither 😉
PR name is not very useful neither 😉
Agreed, but what would you suggest? Changes are really not related at all ... so I struggle to find something short and useful
I removed most changes, see the updated list of changes before reviewing.
I do not achieve to reproduce your issue regarding pytest escaping a non activated virtualenv, so I isolated this change in a specific issue: https://github.com/openzim/_python-bootstrap/issues/27
I finally understood why we needed sometimes the args = args or "."
thing.
It is needed like you said for hatch scripts which passes --args '{args}'
, i.e. --args ''
if no args are provided. We hence always get a string (no need for str | None
, str
is OK) but need the args = args or "."
for tasks which expects a path (and not for the ones which are ok with an empty arg).
Please review again to confirm it is ok for you before merging, sorry for that late understanding, but at least it is now correctly typed + documented.
Fix #25
Changes
str | None
is needed)