-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore!: Drop support for Python 3.8 #244
Conversation
Reviewer's Guide by SourceryThis PR removes Python 3.8 support from the project by leveraging Python 3.9+ features, particularly focusing on built-in type hints and the BooleanOptionalAction from argparse. The implementation involves removing version checks, updating type hints, and adjusting CI configuration and documentation. Updated class diagram for ReverseArgumentParserclassDiagram
class ReverseArgumentParser {
- list[str] _args
- int _indent
- Namespace _namespace
- list[ArgumentParser] _parsers
- list[bool] _unparsed
+ _unparse_action(Action action) void
+ get_pretty_command_line_invocation() str
+ _get_long_option_strings(Sequence~str~ option_strings) list[str]
+ _get_short_option_strings(Sequence~str~ option_strings) list[str]
+ _append_list_of_list_of_args(list[list[str]] args) void
+ _append_list_of_args(list[str] args) void
}
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @jmgate - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #244 +/- ##
==========================================
- Coverage 94.04% 93.97% -0.08%
==========================================
Files 2 2
Lines 168 166 -2
Branches 42 37 -5
==========================================
- Hits 158 156 -2
Misses 4 4
Partials 6 6 ☔ View full report in Codecov by Sentry. |
* Use the type-hinting provided out of the box in 3.9. * Remove version guards around `argparse.BooleanOptionalAction`. * Update documentation and CI accordingly.
3962d91
to
5c448ec
Compare
@jcox10, @GhostofGoes, @william76, anyone want to review and approve? |
LGTM |
Type: Task
Description
argparse.BooleanOptionalAction
.Related Issues/PRs
Motivation
Python 3.8 is no longer supported by the community.
Summary by Sourcery
Drop support for Python 3.8, leveraging Python 3.9 features such as built-in type hinting and removing version guards for BooleanOptionalAction. Update CI and documentation to align with the new minimum Python version requirement.
Enhancements:
CI:
Documentation:
Chores: