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

pyupgrade --py37-plus #153

Merged
merged 3 commits into from
Jul 15, 2022
Merged

Conversation

@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2022

Codecov Report

Merging #153 (6a53be1) into master (ccd297d) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
- Coverage   97.36%   97.36%   -0.01%     
==========================================
  Files          23       23              
  Lines        1214     1213       -1     
==========================================
- Hits         1182     1181       -1     
  Misses         32       32              
Impacted Files Coverage Δ
src/wily/__main__.py 98.30% <ø> (-0.01%) ⬇️
src/wily/lang.py 100.00% <ø> (ø)
src/wily/archivers/__init__.py 100.00% <100.00%> (ø)
src/wily/cache.py 100.00% <100.00%> (ø)
src/wily/commands/diff.py 90.00% <100.00%> (ø)
src/wily/config.py 100.00% <100.00%> (ø)
src/wily/operators/__init__.py 100.00% <100.00%> (ø)
src/wily/state.py 98.80% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ccd297d...6a53be1. Read the comment docs.

"{0:n} -> \u001b[{2}m{1:n}\u001b[0m".format(
current, new, GOOD_COLORS[metric.measure]
)
f"{current:n} -> [{GOOD_COLORS[metric.measure]}m{new:n}"
Copy link
Owner

Choose a reason for hiding this comment

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

Please verify that you've run this wily diff on a project and check that the colors are rendering correctly. In GitHub diff this looks like an invalid character

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pyupgrade is conservative in f-string conversions. -- The first commit.
flynt is more aggressive (perhaps overly) -- The second commit. I think I will revert the flynt changes.

@tonybaloney tonybaloney merged commit 13545cb into tonybaloney:master Jul 15, 2022
@tonybaloney
Copy link
Owner

thanks for the PR

@cclauss cclauss deleted the pyupgrade_py37-plus branch July 15, 2022 07:45
cclauss added a commit to cclauss/wily that referenced this pull request Jul 15, 2022
tonybaloney#153 makes https://pypi.org/project/mock unnecessary.
> mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants