-
Notifications
You must be signed in to change notification settings - Fork 6
chore: replace poetry with uv #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ce6275b
build: switch pyproject to pep-621
fennr dbb0eb9
chore: migrate pre-commit hooks to uv
fennr b26b577
ci: move workflows to uv
fennr 52c95be
fix: resolve all conversations in workflows
fennr f40822d
fix: resolve conversations in pyprobject.toml
fennr a3342f5
fix: added UP rule
fennr 1708493
fir: remove matric
fennr a55b472
refactor: added UP rule
fennr 72e6eea
fix: remove uv backend
fennr 25f3226
chore: add more pre-commit hooks
danfimov 49f4e29
chore: add permissions to workflows run
danfimov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,29 @@ | ||
| name: Release python package | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "*" | ||
| release: | ||
| types: | ||
| - released | ||
|
|
||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: release | ||
| permissions: | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Install poetry | ||
| run: pipx install poetry | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| python-version: "3.9" | ||
| - name: Install deps | ||
| run: poetry install | ||
| - name: Set version | ||
| run: poetry version "${{ github.ref_name }}" | ||
| persist-credentials: false | ||
| - uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| enable-cache: false | ||
| python-version: "3.12" | ||
| version: "latest" | ||
| - run: uv version "${GITHUB_REF_NAME}" | ||
| - run: uv build | ||
| - name: Release package | ||
| env: | ||
| POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | ||
| run: poetry publish --build | ||
| UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
| run: uv publish |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,37 @@ | ||
| name: Testing package | ||
|
|
||
| on: | ||
| - push | ||
| - pull_request | ||
| pull_request: | ||
| paths-ignore: | ||
| - '*.md' | ||
| push: | ||
| paths-ignore: | ||
| - '*.md' | ||
|
|
||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| pull-requests: read | ||
|
|
||
|
|
||
| jobs: | ||
| lint: | ||
| strategy: | ||
| matrix: | ||
| cmd: | ||
| - black | ||
| - mypy | ||
| - ruff | ||
| cmd: ["black", "ruff", "mypy"] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Install poetry | ||
| run: pipx install poetry | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - id: setup-uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| python-version: "3.9" | ||
| cache: "poetry" | ||
| enable-cache: true | ||
| cache-suffix: 3.11 | ||
| version: "latest" | ||
| python-version: 3.11 | ||
| - name: Install deps | ||
| run: poetry install | ||
| run: uv sync --all-extras | ||
| - name: Run lint check | ||
| run: poetry run pre-commit run -a ${{ matrix.cmd }} | ||
| run: uv run pre-commit run -a ${{ matrix.cmd }} |
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
This file was deleted.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| """FastAPI integration for Taskiq project.""" | ||
|
|
||
| from taskiq_fastapi.initializator import init, populate_dependency_context | ||
|
|
||
| __all__ = ["init", "populate_dependency_context"] |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.