fix: update template CI to use uv and ruff instead of poetry and black#246
Open
temrjan wants to merge 1 commit intos3rius:masterfrom
Open
fix: update template CI to use uv and ruff instead of poetry and black#246temrjan wants to merge 1 commit intos3rius:masterfrom
temrjan wants to merge 1 commit intos3rius:masterfrom
Conversation
The generated project CI workflow still used Poetry for dependency management and Black for formatting, while pyproject.toml and .pre-commit-config.yaml already use uv and ruff. Changes: - Replace Poetry with uv (astral-sh/setup-uv@v6 + uv sync) - Replace Black with ruff-format in lint matrix - Update Python version from 3.11 to 3.12 (minimum per pyproject.toml) - Update actions/setup-python from v5 to v6 - Replace Black with ruff format in alembic post_write_hooks Closes s3rius#243 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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
Closes #243
The generated project CI workflow still used Poetry and Black, while
pyproject.tomland.pre-commit-config.yamlalready use uv and ruff.Changes
.github/workflows/tests.yml(template):pipx install poetry+poetry installwithastral-sh/setup-uv@v6+uv syncblackwithruff-formatin lint matrix (matches.pre-commit-config.yamlhook IDs)actions/setup-pythonfrom v5 to v6pyproject.toml)cache: 'poetry'(uv handles its own cache)alembic.ini(template):blackpost-write hook withruff formatruffhook toruff_checkfor clarityBefore vs After
Test plan
ruff-format,ruff,mypy) match.pre-commit-config.yamlhook IDsuv syncmatches root-level CI pattern (.github/workflows/test.yml)🤖 Generated with Claude Code