-
-
Notifications
You must be signed in to change notification settings - Fork 9
Upgrade ruff's target Python version to 3.10 #363
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
Conversation
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Signed-off-by: Tomas Pereira de Vasconcelos <tomasvasconcelos1@gmail.com>
Fix histogram bin midpoints + other doc improvements
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #363 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 659 657 -2
Branches 85 85
=========================================
- Hits 659 657 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This pull request primarily upgrades the codebase to target Python 3.10, updates the usage of the
zipfunction to enforce stricter argument handling, and cleans up type imports now thatLiteralandTypeAliasare available directly from the standard library in Python 3.10. Additionally, it updates the CI configuration and adds a changelog entry for the Python version bump.Python version upgrade and code modernization:
target-versioninruff.tomlto"py310"to target Python 3.10, and updated the changelog to note this upgrade. [1] [2]LiteralandTypeAliasfromtyping_extensionswith imports from the standard librarytypingthroughout the codebase, and updated related type imports for consistency. [1] [2] [3] [4] [5] [6] [7] [8]Stricter argument handling in
zipusage:strict=Trueto allzipcalls where two iterables are zipped together, both in the main code and in tests, to catch mismatched lengths and improve reliability. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]CI/CD and workflow changes:
DIFF_AGAINST: HEADfor the CI job in.github/workflows/ci.ymlinstead of repeating it for each test step, simplifying the workflow configuration. [1] [2]Other improvements:
get_argsto use the standard librarytypingin Python 3.10.📚 Documentation preview 📚: https://ridgeplot--363.org.readthedocs.build/en/363/