build: modernize CI workflow with uv and improve code quality tooling #89
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.
TLDR
Migrate CI from pip to uv, replace multiple linting tools with Ruff, and remove EOL Python 3.8 support.
Change Summary
CI/CD Modernization:
In
.github/workflows/test-and-lint.yml:actions/setup-pythonwithastral-sh/setup-uv@v5for faster dependency managementpip installtouv sync --locked --all-extras --devfor reproducible buildsuv runprefixIn
.github/workflows/release.yml:Code Quality Tool Consolidation:
In
pyproject.toml:wemake-python-styleguide,flake8,blackisortfor import sorting compatibilityNew Configuration in
ruff.toml:Bug Fixes:
src/typesense/stemming_dictionaries.py:from errto preserve original exception contextDependency Management:
uv.lock: Removed 50+ legacy linting dependencies, added Ruff and isortContext
This modernization improves CI performance by leveraging uv's faster dependency resolution and installation. Dropping Python 3.8 support aligns with its EOL status and allows use of modern tooling.