-
Notifications
You must be signed in to change notification settings - Fork 1
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 #151
Conversation
* Use type-hinting out of the box in 3.9. * Use new dictionary update syntax. * Update the CI and docs accordingly.
Reviewer's Guide by SourceryThis PR removes Python 3.8 support from the codebase. The implementation focuses on two main aspects: updating type hints to use the new Python 3.9+ syntax (e.g., list[str] instead of List[str]) and adopting the new dictionary union operator (|=). The changes also include removing Python 3.8 from CI configurations and documentation. Updated class diagram for type hinting changesclassDiagram
class html_utilities {
+nested_simplenamespace_to_dict()
+parent_logger_card_html(name: str, *args: list[Iterator[str]])
+child_logger_card_html(name: str, duration: str, *args: Union[Iterator[str], list[Iterator[str]]])
+time_series_plot(cmd_id: str, data_tuples: list[tuple[float, float]], series_title: str)
+disk_time_series_plot(cmd_id: str, data_tuples: tuple[float, float], volume_name: str)
+stat_chart_card(labels: list[str], data: list[float], title: str, identifier: str)
+split_template(template: str, split_at: str, **kwargs) -> tuple[str, str, str]
+sgr_8bit_color_to_html(sgr_params: list[str]) -> str
+sgr_24bit_color_to_html(sgr_params: list[str]) -> str
}
class shell_logger {
+__init__(log: Optional[list[object]] = None)
+to_html() -> Union[Iterator[str], list[Iterator[str]]]
+log() -> None
}
class shell {
+write(input_file: TextIO, output_files: list[TextIO]) -> None
+auxiliary_command() -> tuple[Optional[str], Optional[str]]
}
class stats_collector {
+stats_collectors(**kwargs) -> list[StatsCollector]
+unproxied_stats() -> list[tuple[float, float]]
}
File-Level Changes
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: 2 issues found
- 🟢 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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #151 +/- ##
==========================================
- Coverage 77.93% 77.84% -0.10%
==========================================
Files 7 7
Lines 843 844 +1
Branches 168 145 -23
==========================================
Hits 657 657
- Misses 146 147 +1
Partials 40 40 ☔ View full report in Codecov by Sentry. |
Sourcery caught that this should be a sequence of tuples, and not just a single one.
Sourcery suggested using an exception for this unreachable scenario.
Type: Task
Description
Motivation
The Python community no longer supports 3.8.
Summary by Sourcery
Drop support for Python 3.8 and update the codebase to leverage Python 3.9 features, including type hinting and dictionary update syntax. Adjust CI and documentation to align with the new Python version support.
Enhancements:
CI:
Documentation:
Chores: