Skip to content

use uv and ruff - #5

Merged
mosquito merged 4 commits into
masterfrom
feature/uv-and-ruff
Feb 9, 2026
Merged

use uv and ruff#5
mosquito merged 4 commits into
masterfrom
feature/uv-and-ruff

Conversation

@mosquito

@mosquito mosquito commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

This pull request modernizes the codebase by updating the CI workflows to use the uv tool instead of poetry for Python environment management, and by refactoring the main aiomisc_pytest.py file to use more modern Python syntax (PEP 604 type unions and type annotations). These changes improve maintainability, readability, and compatibility with newer Python versions.

CI/CD Workflow Modernization:

  • Updated all GitHub Actions workflows (.github/workflows/publish.yml, .github/workflows/tests.yml) to use uv for Python installation, dependency management, building, and publishing, replacing poetry and setup-python actions. Also updated to use newer action versions (e.g., actions/checkout@v4).

Code Modernization and Type Hint Improvements:

  • Refactored aiomisc_pytest.py to use PEP 604 type unions (e.g., int | float instead of Union[int, float]) and updated type annotations throughout, improving code readability and leveraging modern Python features.

  • Improved code style and consistency by reformatting argument lists, using f-strings, and removing deprecated imports/usages (e.g., Optional, Dict, Type in favor of native Python 3.10+ syntax).
    These updates make the project easier to maintain and better aligned with the latest Python ecosystem standards.

@mosquito
mosquito force-pushed the feature/uv-and-ruff branch from 6bed03b to fdb4ffb Compare February 9, 2026 00:03
new aiomisc

new aiomisc
@mosquito
mosquito force-pushed the feature/uv-and-ruff branch from fdb4ffb to e80325b Compare February 9, 2026 00:04
@mosquito
mosquito merged commit b6f974d into master Feb 9, 2026
14 checks passed
@mosquito
mosquito deleted the feature/uv-and-ruff branch February 9, 2026 00:08
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