feat: Update the project to modern Python and tooling#37
Merged
Conversation
This was referenced Nov 16, 2025
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.
feat!: Modernize OSlash to Python 3.12+ with strict type checking
This PR completes the OSlash modernization plan, bringing the codebase to Python 3.12+ with modern tooling and strict type safety.
🎯 Major Changes
Type System Modernization (Phase 3)
TypeVardeclarations with modern[T]syntaxfrom __future__ import annotationsto all modulesAnyusage with justification commentsBuild System & Package Management (Phase 1)
setup.py,setup.cfg,versioneer.py(68k lines!),MANIFEST.in,.flake8,.pylintrc,requirements.txtCode Quality Tooling (Phase 2)
reportAnysetting)Code Improvements
# type: ignorecommentsCallabletype hints to lambda expressions in tests@classmethoddo,guard,let)CI/CD (Phase 5)
.github/workflows/ci.yml.github/workflows/release-please.ymlDocumentation (Phase 6)
📊 Results
oslash/)🔧 Breaking Changes
For Users
For Contributors
📝 Files Changed
Deleted (7):
setup.py,setup.cfg,versioneer.py,MANIFEST.in,.flake8,.pylintrc,requirements.txtCreated (6):
.pre-commit-config.yaml,release-please-config.json,.release-please-manifest.json,.github/workflows/ci.yml,.github/workflows/release-please.yml,CLAUDE.mdModified (~35): All source files updated with PEP 695 syntax, test files with proper types, configuration files modernized
🎓 Educational Impact
This modernization showcases Python 3.12+ best practices:
Perfect for learning functional programming with state-of-the-art Python!
BREAKING CHANGE: Requires Python 3.12+. This is an educational project showcasing modern Python features. For Python 3.8+ support, use version 0.6.0.