Skip to content

Use UV and Ruff#226

Merged
mosquito merged 1 commit intomasterfrom
feautre/use-uv-and-ruff
Feb 22, 2026
Merged

Use UV and Ruff#226
mosquito merged 1 commit intomasterfrom
feautre/use-uv-and-ruff

Conversation

@mosquito
Copy link
Copy Markdown
Owner

This pull request migrates the project from Poetry to uv for Python package management and builds, updates CI workflows to use uv, and removes legacy configuration files and tools. It also refactors test setup to use a custom Docker-based RabbitMQ container management, improving reliability and flexibility for local and CI testing. The most important changes are grouped below:

Build system migration and configuration cleanup:

  • Migrated from Poetry to uv for package management, builds, and publishing, updating pyproject.toml to use uv configuration and removing poetry.toml, pylama.ini, .coveragerc, and legacy Poetry-specific settings. [1] [2] [3] [4] [5]
  • Updated Makefile commands to use uv for build, publish, test, and development instead of Poetry.

CI workflow modernization:

  • Replaced Poetry-based steps in GitHub Actions workflows with uv equivalents, including package installation, linting (switching from pylama to ruff), and test execution. Updated checkout and setup-python actions to latest versions and improved RabbitMQ container setup in CI. [1] [2] [3] [4]
  • Added a new workflow for publishing to PyPI using uv and the official PyPI publish action.

Testing and Docker container management improvements:

  • Refactored tests/conftest.py to use a custom Docker client for RabbitMQ container lifecycle management, including robust cleanup with atexit and readiness probing. Supports both local and CI environments via AMQP_URL. [1] [2]
  • Simplified and improved test fixtures for AMQP URLs, channel setup, and removed quick test skip marker. [1] [2]

Linting and coverage configuration updates:

  • Added configuration for ruff linting and coverage in pyproject.toml, removing legacy pylama and coverage files. [1] [2] [3]

General cleanup:

  • Removed unused or obsolete files (gray.conf, poetry.toml, pylama.ini, .coveragerc) and settings. [1] [2] [3] [4]

This migration streamlines development, testing, and CI/CD processes, and ensures compatibility with modern Python tooling.

@mosquito mosquito merged commit ec95ea9 into master Feb 22, 2026
18 of 19 checks passed
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.

1 participant