use uv and ruff - #5
Merged
Merged
Conversation
mosquito
force-pushed
the
feature/uv-and-ruff
branch
from
February 9, 2026 00:03
6bed03b to
fdb4ffb
Compare
new aiomisc new aiomisc
mosquito
force-pushed
the
feature/uv-and-ruff
branch
from
February 9, 2026 00:04
fdb4ffb to
e80325b
Compare
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.
This pull request modernizes the codebase by updating the CI workflows to use the
uvtool instead ofpoetryfor Python environment management, and by refactoring the mainaiomisc_pytest.pyfile 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:
.github/workflows/publish.yml,.github/workflows/tests.yml) to useuvfor Python installation, dependency management, building, and publishing, replacingpoetryandsetup-pythonactions. Also updated to use newer action versions (e.g.,actions/checkout@v4).Code Modernization and Type Hint Improvements:
Refactored
aiomisc_pytest.pyto use PEP 604 type unions (e.g.,int | floatinstead ofUnion[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,Typein favor of native Python 3.10+ syntax).These updates make the project easier to maintain and better aligned with the latest Python ecosystem standards.