Modernize Codebase and Enhance CI Workflow (#67)

Updated Type Hints:

Used pyupgrade with --py39-plus and --py310-plus flags to upgrade type hints to Python 3.9+ and 3.10+ syntax.
Enforced Double Quotes:

Removed skip-string-normalization = true from the black configuration in pyproject.toml.
Reran black via pre-commit hooks to enforce double quotes in the codebase.
Refactored Dependency Management:

Split requirements.txt into requirements.txt (runtime dependencies) and requirements-dev.txt (development dependencies).
Enhanced CI Workflow:

Integrated pre-commit hooks into the CI pipeline to enforce code quality checks automatically.
Added pip caching to the CI workflow to speed up dependency installation.
Automated Package Publishing:

Added a publish.yml GitHub Actions workflow to automate publishing to PyPI.
The workflow triggers on release creation or manual dispatch, builds the package, and publishes it to PyPI using twine.
This commit is contained in:
Filip Christiansen 2024-12-29 06:52:24 +01:00 committed by GitHub
parent 3c5e7e95ae
commit 848b9dc1ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 398 additions and 342 deletions

7
requirements-dev.txt Normal file
View file

@ -0,0 +1,7 @@
-r requirements.txt
black
djlint
pre-commit
pylint
pytest
pytest-asyncio