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

Apply more ruff rules #633

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Aug 24, 2024

No description provided.

Copy link

codecov bot commented Aug 24, 2024

Codecov Report

Attention: Patch coverage is 73.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 70.83%. Comparing base (7bb46d7) to head (a2c0acc).

Files Patch % Lines
src/wheel/cli/convert.py 0.00% 1 Missing ⚠️
src/wheel/cli/tags.py 66.66% 1 Missing ⚠️
src/wheel/macosx_libfile.py 50.00% 1 Missing ⚠️
src/wheel/metadata.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #633      +/-   ##
==========================================
- Coverage   71.11%   70.83%   -0.28%     
==========================================
  Files          14       14              
  Lines        1087     1087              
==========================================
- Hits          773      770       -3     
- Misses        314      317       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

PERF401 Use a list comprehension to create a transformed list
PIE810 Call `endswith` once with a `tuple`
PLC0208 Use a sequence type instead of a `set` when iterating over values
@DimitriPapadopoulos DimitriPapadopoulos changed the title Apply ruff/Perflint rule PERF401 Apply more ruff rules Aug 24, 2024
@agronholm
Copy link
Contributor

I'm not seeing any changes to pyproject.toml?

@agronholm
Copy link
Contributor

May I ask what prompted this change?

@DimitriPapadopoulos
Copy link
Contributor Author

I just tried to apply some rules that raised a few valid issues in other projects.

PLC0414 Import alias does not rename original package
TCH003 Move standard library import into a type-checking block
FLY002 Consider f-string instead of string join
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.

2 participants