Skip to content

fix: update template CI to use uv and ruff instead of poetry and black#246

Open
temrjan wants to merge 1 commit intos3rius:masterfrom
temrjan:fix/template-ci-uv-ruff
Open

fix: update template CI to use uv and ruff instead of poetry and black#246
temrjan wants to merge 1 commit intos3rius:masterfrom
temrjan:fix/template-ci-uv-ruff

Conversation

@temrjan
Copy link

@temrjan temrjan commented Mar 24, 2026

Summary

Closes #243

The generated project CI workflow still used Poetry and Black, while pyproject.toml and .pre-commit-config.yaml already use uv and ruff.

Changes

.github/workflows/tests.yml (template):

  • Replace pipx install poetry + poetry install with astral-sh/setup-uv@v6 + uv sync
  • Replace black with ruff-format in lint matrix (matches .pre-commit-config.yaml hook IDs)
  • Update actions/setup-python from v5 to v6
  • Update Python from 3.11 to 3.12 (minimum per pyproject.toml)
  • Remove cache: 'poetry' (uv handles its own cache)

alembic.ini (template):

  • Replace black post-write hook with ruff format
  • Rename ruff hook to ruff_check for clarity

Before vs After

Aspect Before After
Dependency manager Poetry uv
Formatter Black ruff format
Python version 3.11 3.12
setup-python v5 v6
Alembic hooks black + ruff check ruff format + ruff check

Test plan

  • Verified lint matrix IDs (ruff-format, ruff, mypy) match .pre-commit-config.yaml hook IDs
  • Verified uv sync matches root-level CI pattern (.github/workflows/test.yml)
  • Generate a project with cookiecutter and verify CI passes

🤖 Generated with Claude Code

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI Workflow Outdated: Still Uses Poetry & Black Instead of UV & Ruff (DevOps/Maintenance Required)

1 participant