Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 14 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Install dependencies and pre-commit hooks
install:
uv sync --all-extras
install *extras:
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The install command now requires explicit arguments, which breaks backwards compatibility. When called without arguments (e.g., just install), it will run uv sync with no extras, whereas previously it would install all extras.

Consider providing a default value to maintain backwards compatibility:

install extras="--all-extras":
	uv sync {{ extras }}

This allows the CI to override with different extras while maintaining sensible defaults for local development.

Suggested change
install *extras:
install extras="--all-extras":

Copilot uses AI. Check for mistakes.
Copy link

@cubic-dev-ai cubic-dev-ai bot Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Default behavior change: just install without arguments no longer installs all extras. Previously it ran uv sync --all-extras, now it runs uv sync with no extras. Consider preserving the old default behavior with:

install *extras='--all-extras':

Or document that developers must now explicitly run just install --all-extras.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At justfile, line 2:

<comment>Default behavior change: `just install` without arguments no longer installs all extras. Previously it ran `uv sync --all-extras`, now it runs `uv sync` with no extras. Consider preserving the old default behavior with:

install *extras='--all-extras':

Or document that developers must now explicitly run `just install --all-extras`.</comment>

<file context>
@@ -1,6 +1,6 @@
 # Install dependencies and pre-commit hooks
-install:
-	uv sync --all-extras
+install *extras:
+	uv sync {{ extras }}
 
</file context>
Suggested change
install *extras:
install *extras='--all-extras':
Fix with Cubic

uv sync {{ extras }}

# Run ruff linting
lint:
Expand All @@ -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