Skip to content

Comments

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

Merged
casperdcl merged 2 commits intoiterative:mainfrom
omesser:fstrings_galore
Jun 12, 2023
Merged

String fmt - f-strings (almost) everywhere#135
casperdcl merged 2 commits intoiterative:mainfrom
omesser:fstrings_galore

Conversation

@omesser
Copy link
Contributor

@omesser omesser commented Apr 23, 2023

... 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
Copy link

codecov-commenter commented Apr 23, 2023

Codecov Report

Patch coverage: 87.75% and project coverage change: -0.26 ⚠️

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

Additional details and impacted files
@@            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 Coverage Δ
shtab/__init__.py 93.42% <87.50%> (-0.40%) ⬇️
shtab/main.py 87.50% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@omesser omesser marked this pull request as draft April 23, 2023 21:33
@omesser omesser force-pushed the fstrings_galore branch 3 times, most recently from bc6396f to 400d2b9 Compare April 23, 2023 21:45
@omesser omesser marked this pull request as ready for review April 23, 2023 21:50
@omesser omesser changed the title String formatting - f-strings (almost) everywhere String fmt - f-strings (almost) everywhere Apr 23, 2023
@omesser omesser requested review from 0x2b3bfa0 and casperdcl April 24, 2023 11:36
Copy link
Collaborator

@casperdcl casperdcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f-strings make sense as it's a py>=3.7 lib now.

I reverted the other stuff as I prefer the more permissive yapf to opinionated black style.

@casperdcl casperdcl merged commit ed933a6 into iterative:main Jun 12, 2023
@casperdcl casperdcl added the technical-debt Refactoring, linting & tidying label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technical-debt Refactoring, linting & tidying

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants