feat: upgrade to Python 3.10 and modernize codebase#259
Merged
Conversation
- Update minimum Python version from 3.8 to 3.10 - Modernize type hints using Python 3.10+ union syntax (| instead of Optional/List) - Update copyright year from 2023 to 2025 in all source files - Add Python version classifiers to pyproject.toml - Update .python-version to 3.10 - Update README.md to reflect Python 3.10 requirement All tests pass successfully with Python 3.10.9. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The yaml import is required for yaml.safe_load() usage in the env_file processing code, but ruff's static analysis doesn't detect this usage. Adding noqa comment to prevent auto-removal.
…e import The parameter name 'yaml' was conflicting with the yaml module import, causing ruff error F811 (redefinition of unused variable). Renamed the parameter to 'yaml_files' to resolve the conflict.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR upgrades seqerakit from Python 3.8 (EOL) to Python 3.10 and modernizes the codebase with Python 3.10+ features.
Changes Made
Python Version Updates
.python-versionfrom 3.12 to 3.10pyproject.tomlrequires-pythonfrom>=3.8,<4to>=3.10,<4README.mdPython requirement from>=3.8to>=3.10pyproject.toml(3.10, 3.11, 3.12)Code Modernization
seqerakit/cli.pyto use Python 3.10+ union syntaxOptional[List[str]]→list[str] | NoneOptional[str]→str | Nonefrom typing import Optional, ListimportsCopyright Updates
seqerakit/cli.pyseqerakit/utils.pyseqerakit/seqeraplatform.pyseqerakit/helper.pyseqerakit/overwrite.pyseqerakit/pipelines.pyseqerakit/computeenvs.pytests/unit/test_utils.pyTest plan
seqerakit --helpruns successfullyseqerakit --versiondisplays correctlyuv synccompletes without errorsMotivation
Python 3.8 reached end-of-life in October 2024. Upgrading to Python 3.10 ensures continued security updates and allows us to use modern Python features.
🤖 Generated with Claude Code