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

Require Python 3.9, apply pyupgrade linter #226

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

HexDecimal
Copy link
Collaborator

Python 3.8 is nearly end-of-life and I'd like to access to the is_relative_to methods of the pathlib library of Python 3.9.

Removed .mypy.ini by moving its settings to pyproject.toml.

The PR will apply and enforce the Ruff rules UP(pyupgrade) and FA(flake8-future-annotations). This will automate various maintenance tasks and replace a lot of outdated syntax.

@HexDecimal HexDecimal marked this pull request as ready for review August 29, 2024 23:44
Copy link

codecov bot commented Aug 29, 2024

Codecov Report

Attention: Patch coverage is 95.94595% with 3 lines in your changes missing coverage. Please review.

Project coverage is 97.05%. Comparing base (b0c3781) to head (85e4719).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
delocate/cmd/delocate_addplat.py 50.00% 1 Missing ⚠️
delocate/delocating.py 90.90% 1 Missing ⚠️
delocate/tools.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #226      +/-   ##
==========================================
+ Coverage   96.99%   97.05%   +0.05%     
==========================================
  Files          16       16              
  Lines        1333     1326       -7     
==========================================
- Hits         1293     1287       -6     
+ Misses         40       39       -1     

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

Remove `raise ValueError` on missing patch file.
This was always extraneous since the open call would've raised `FileNotFoundError` on its own.

Normally I wouldn't add an undocumented raise to the changelog, but I'm being safe.

Convert to pathlib and use str types for Popen.
@HexDecimal HexDecimal merged commit dfb21c8 into matthew-brett:master Oct 15, 2024
13 of 14 checks passed
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.

1 participant