iterative / shtab

↔️ Automagic shell tab completion for Python CLI applications
https://docs.iterative.ai/shtab
Other
362 stars 35 forks source link

String fmt - f-strings (almost) everywhere #135

Closed omesser closed 1 year ago

omesser commented 1 year ago

... f-strings, f-stringss everywhere

Just a (hopefully...) non-functional PR - all for ✨ of using f-strings almost everywhere, except where it still doesn't make sense and .format() is better way of keeping readability.

This can be kinda opinionated, so let's see if maintainers (@0x2b3bfa0 and @casperdcl I guess?) feel the same way about the choices.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 87.75% and project coverage change: -0.26 :warning:

Comparison is base (80a1050) 91.39% compared to head (eaf00e2) 91.14%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #135 +/- ## ========================================== - Coverage 91.39% 91.14% -0.26% ========================================== Files 3 3 Lines 337 350 +13 ========================================== + Hits 308 319 +11 - Misses 29 31 +2 ``` | [Impacted Files](https://codecov.io/gh/iterative/shtab/pull/135?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iterative) | Coverage Δ | | |---|---|---| | [shtab/\_\_init\_\_.py](https://codecov.io/gh/iterative/shtab/pull/135?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iterative#diff-c2h0YWIvX19pbml0X18ucHk=) | `93.42% <87.50%> (-0.40%)` | :arrow_down: | | [shtab/main.py](https://codecov.io/gh/iterative/shtab/pull/135?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iterative#diff-c2h0YWIvbWFpbi5weQ==) | `87.50% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iterative). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iterative)

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