From f8b4bc5c0e2e5b0896e7272f4e040727a667e062 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Thu, 18 Dec 2025 19:20:05 +0000 Subject: [PATCH 1/2] chore(ci): use just commands instead of direct uv/mypy calls Refactor CI workflow to use just commands for consistency with local development workflow. This removes the obsolete server.py exclusion from mypy (file was removed in bcb12b4) and makes justfile's install command accept optional extras arguments. Changes: - CI now uses `just install`, `just lint`, `just mypy`, `just test` - justfile install command accepts variable extras arguments - Removes Python 3.9 special case for server.py exclusion --- .github/workflows/ci.yml | 13 ++++--------- justfile | 4 ++-- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 963ec73..d2f74fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,18 +37,13 @@ jobs: uses: ./.github/actions/setup-nix - name: Install dependencies - run: nix develop --command uv sync ${{ matrix.sync-extras }} + run: nix develop --command just install ${{ matrix.sync-extras }} - name: Run Lint - run: nix develop --command uv run ruff check . + run: nix develop --command just lint - name: Run Mypy - run: | - if [[ "${{ matrix.python-version }}" == "3.9" ]]; then - nix develop --command uv run mypy stackone_ai --exclude stackone_ai/server.py - else - nix develop --command uv run mypy stackone_ai - fi + run: nix develop --command just mypy - name: Run Tests - run: nix develop --command uv run pytest + run: nix develop --command just test diff --git a/justfile b/justfile index 02ec5dd..2674524 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,6 @@ # Install dependencies and pre-commit hooks -install: - uv sync --all-extras +install *extras: + uv sync {{ extras }} # Run ruff linting lint: From a8cf7f3ac0e9657ac4fc47925f258a60f444c359 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Thu, 18 Dec 2025 19:21:08 +0000 Subject: [PATCH 2/2] chore(ci): use just commands in release workflow Add update-version, build, and publish commands to justfile and update release.yml to use them instead of direct uv calls. --- .github/workflows/release.yml | 6 +++--- justfile | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03c5fc1..05425b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,12 +30,12 @@ jobs: - name: Update version in __init__.py if: ${{ steps.release.outputs.release_created }} - run: nix develop --command uv run scripts/update_version.py + run: nix develop --command just update-version - name: Build and publish package if: ${{ steps.release.outputs.release_created }} env: UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }} run: | - nix develop --command uv build - nix develop --command uv publish + nix develop --command just build + nix develop --command just publish diff --git a/justfile b/justfile index 2674524..1a9d7e7 100644 --- a/justfile +++ b/justfile @@ -25,3 +25,15 @@ test-examples: # Run type checking mypy: uv run mypy stackone_ai + +# Update version in __init__.py +update-version: + uv run scripts/update_version.py + +# Build package +build: + uv build + +# Publish package to PyPI +publish: + uv publish