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
12 changes: 8 additions & 4 deletions src/project_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1098,10 +1098,12 @@ fn create_pyo3_justfile(project_info: &ProjectInfo) -> Result<String> {
@develop-release:
uv run maturin develop -r --uv

@install: && develop
@install:
uv run maturin develop --uv && \
uv sync --frozen --all-extras

@install-release: && develop-release
@install-release:
uv run maturin develop -r --uv && \
uv sync --frozen --all-extras

@check:
Expand Down Expand Up @@ -1173,10 +1175,12 @@ granian_cmd := if os() != "windows" {
@develop-release:
python -m maturin develop -r

@install: && develop
@install:
python -m maturin develop && \
python -m pip install -r requirements-dev.txt

@install-release: && develop-release
@install-release:
python -m maturin develop -r && \
python -m pip install -r requirements-dev.txt

@check:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
source: src/project_generator.rs
expression: content
---
"@_default:\n just --list\n\n@lint:\n echo cargo check\n just --justfile {{justfile()}} check\n echo cargo clippy\n just --justfile {{justfile()}} clippy\n echo cargo fmt\n just --justfile {{justfile()}} fmt\n echo mypy\n just --justfile {{justfile()}} mypy\n echo ruff check\n just --justfile {{justfile()}} ruff-check\n echo ruff formatting\n just --justfile {{justfile()}} ruff-format\n\n@lock:\n uv lock\n\n@lock-upgrade:\n uv lock --upgrade\n\n@develop:\n uv run maturin develop --uv\n\n@develop-release:\n uv run maturin develop -r --uv\n\n@install: && develop\n uv sync --frozen --all-extras\n\n@install-release: && develop-release\n uv sync --frozen --all-extras\n\n@check:\n cargo check\n\n@clippy:\n cargo clippy --all-targets\n\n@fmt:\n cargo fmt --all -- --check\n\n@mypy:\n uv run mypy my_project tests\n\n@ruff-check:\n uv run ruff check my_project tests --fix\n\n@ruff-format:\n uv run ruff format my_project tests\n\n@test *args=\"\":\n uv run pytest {{args}}\n"
"@_default:\n just --list\n\n@lint:\n echo cargo check\n just --justfile {{justfile()}} check\n echo cargo clippy\n just --justfile {{justfile()}} clippy\n echo cargo fmt\n just --justfile {{justfile()}} fmt\n echo mypy\n just --justfile {{justfile()}} mypy\n echo ruff check\n just --justfile {{justfile()}} ruff-check\n echo ruff formatting\n just --justfile {{justfile()}} ruff-format\n\n@lock:\n uv lock\n\n@lock-upgrade:\n uv lock --upgrade\n\n@develop:\n uv run maturin develop --uv\n\n@develop-release:\n uv run maturin develop -r --uv\n\n@install:\n uv run maturin develop --uv && \\\n uv sync --frozen --all-extras\n\n@install-release:\n uv run maturin develop -r --uv && \\\n uv sync --frozen --all-extras\n\n@check:\n cargo check\n\n@clippy:\n cargo clippy --all-targets\n\n@fmt:\n cargo fmt --all -- --check\n\n@mypy:\n uv run mypy my_project tests\n\n@ruff-check:\n uv run ruff check my_project tests --fix\n\n@ruff-format:\n uv run ruff format my_project tests\n\n@test *args=\"\":\n uv run pytest {{args}}\n"
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
source: src/project_generator.rs
expression: content
---
"@_default:\n just --list\n\n@lint:\n echo cargo check\n just --justfile {{justfile()}} check\n echo cargo clippy\n just --justfile {{justfile()}} clippy\n echo cargo fmt\n just --justfile {{justfile()}} fmt\n echo mypy\n just --justfile {{justfile()}} mypy\n echo ruff check\n just --justfile {{justfile()}} ruff-check\n echo ruff formatting\n just --justfile {{justfile()}} ruff-format\n\n@lock:\n uv lock\n\n@lock-upgrade:\n uv lock --upgrade\n\n@develop:\n uv run maturin develop --uv\n\n@develop-release:\n uv run maturin develop -r --uv\n\n@install: && develop\n uv sync --frozen --all-extras\n\n@install-release: && develop-release\n uv sync --frozen --all-extras\n\n@check:\n cargo check\n\n@clippy:\n cargo clippy --all-targets\n\n@fmt:\n cargo fmt --all -- --check\n\n@mypy:\n uv run mypy my_project tests\n\n@ruff-check:\n uv run ruff check my_project tests --fix\n\n@ruff-format:\n uv run ruff format my_project tests\n\n@test *args=\"\":\n uv run pytest {{args}}\n\n@test-parallel *args=\"\":\n uv run pytest -n auto {{args}}\n\ngranian_cmd := if os() != \"windows\" {\n \"uv run granian app.main:app --host 127.0.0.1 --port 8000 --interface asgi --no-ws --runtime-mode st --loop uvloop --reload\"\n} else {\n \"uv run granian app.main:app --host 127.0.0.1 --port 8000 --interface asgi --no-ws --runtime-mode st --reload\"\n}\n\n@backend-server:\n {{granian_cmd}}\n\n@docker-up:\n docker compose up --build\n\n@docker-up-detached:\n docker compose up --build -d\n\n@docker-up-services:\n docker compose up db valkey migrations\n\n@docker-up-services-detached:\n docker compose up db valkey migrations -d\n\n@docker-down:\n docker compose down\n\n@docker-down-volumes:\n docker compose down --volumes\n\n@docker-pull:\n docker compose pull db valkey migrations\n\n@docker-build:\n docker compose build\n}}}}\n"
"@_default:\n just --list\n\n@lint:\n echo cargo check\n just --justfile {{justfile()}} check\n echo cargo clippy\n just --justfile {{justfile()}} clippy\n echo cargo fmt\n just --justfile {{justfile()}} fmt\n echo mypy\n just --justfile {{justfile()}} mypy\n echo ruff check\n just --justfile {{justfile()}} ruff-check\n echo ruff formatting\n just --justfile {{justfile()}} ruff-format\n\n@lock:\n uv lock\n\n@lock-upgrade:\n uv lock --upgrade\n\n@develop:\n uv run maturin develop --uv\n\n@develop-release:\n uv run maturin develop -r --uv\n\n@install:\n uv run maturin develop --uv && \\\n uv sync --frozen --all-extras\n\n@install-release:\n uv run maturin develop -r --uv && \\\n uv sync --frozen --all-extras\n\n@check:\n cargo check\n\n@clippy:\n cargo clippy --all-targets\n\n@fmt:\n cargo fmt --all -- --check\n\n@mypy:\n uv run mypy my_project tests\n\n@ruff-check:\n uv run ruff check my_project tests --fix\n\n@ruff-format:\n uv run ruff format my_project tests\n\n@test *args=\"\":\n uv run pytest {{args}}\n\n@test-parallel *args=\"\":\n uv run pytest -n auto {{args}}\n\ngranian_cmd := if os() != \"windows\" {\n \"uv run granian app.main:app --host 127.0.0.1 --port 8000 --interface asgi --no-ws --runtime-mode st --loop uvloop --reload\"\n} else {\n \"uv run granian app.main:app --host 127.0.0.1 --port 8000 --interface asgi --no-ws --runtime-mode st --reload\"\n}\n\n@backend-server:\n {{granian_cmd}}\n\n@docker-up:\n docker compose up --build\n\n@docker-up-detached:\n docker compose up --build -d\n\n@docker-up-services:\n docker compose up db valkey migrations\n\n@docker-up-services-detached:\n docker compose up db valkey migrations -d\n\n@docker-down:\n docker compose down\n\n@docker-down-volumes:\n docker compose down --volumes\n\n@docker-pull:\n docker compose pull db valkey migrations\n\n@docker-build:\n docker compose build\n}}}}\n"