-
Notifications
You must be signed in to change notification settings - Fork 113
Migrate project from Poetry to uv for dependency management #52
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
Open
kodzonko
wants to merge
5
commits into
RichardAtCT:main
Choose a base branch
from
kodzonko:chore/replace-poetry-with-uv
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
53c4e7d
chore: replace poetry with uv
kodzonko 9941b05
ci(ci): remove redundant python installation step
kodzonko a35c2ba
chore(deps): pin uv version in CI and Dockerfile
kodzonko b0b08c7
refactor(cli): update execution commands to use claude-wrapper
kodzonko cee7f65
chore: update Docker setup for Uvicorn with development reload options
kodzonko 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
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 |
|---|---|---|
|
|
@@ -16,47 +16,33 @@ jobs: | |
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install Poetry | ||
| uses: snok/install-poetry@v1 | ||
| with: | ||
| virtualenvs-create: true | ||
| virtualenvs-in-project: true | ||
|
|
||
| - name: Load cached venv | ||
| id: cached-poetry-dependencies | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: .venv | ||
| key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
| # Keep in sync with the uv version pinned in the Dockerfile so lockfile | ||
| # resolution behaves identically in CI and Docker builds. | ||
| version: "0.11.19" | ||
| enable-cache: true | ||
|
|
||
| - name: Install dependencies | ||
| if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
| run: poetry install --no-interaction --no-root | ||
|
|
||
| - name: Install project | ||
| run: poetry install --no-interaction | ||
| run: uv sync --locked --python ${{ matrix.python-version }} | ||
|
Comment on lines
+19
to
+28
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uv sync pulls required python version on its own. Doesn't need to be available on the host. |
||
|
|
||
| - name: Run linting | ||
| run: poetry run black --check src tests | ||
| run: uv run black --check src tests | ||
|
|
||
| - name: Type checking | ||
| run: poetry run mypy src --ignore-missing-imports | ||
| run: uv run mypy src --ignore-missing-imports | ||
| continue-on-error: true | ||
|
|
||
| - name: Security scan | ||
| run: poetry run bandit -r src/ -ll -x tests | ||
| run: uv run bandit -r src/ -ll -x tests | ||
|
|
||
| - name: Dependency vulnerability scan | ||
| run: poetry run safety check || true | ||
| run: uv run safety check || true | ||
| continue-on-error: true | ||
|
|
||
| - name: Run tests | ||
| run: poetry run pytest tests/ -v --cov=src --cov-report=xml --cov-report=term-missing | ||
| run: uv run pytest tests/ -v --cov=src --cov-report=xml --cov-report=term-missing | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| if: matrix.python-version == '3.11' | ||
|
|
||
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.
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.