Skip to content

Commit

Permalink
Merge pull request #603 from sanders41/pyo3-uv
Browse files Browse the repository at this point in the history
Fix just command for maturin when using uv
  • Loading branch information
sanders41 authored Nov 19, 2024
2 parents 2efa0b6 + d6a075f commit f7bc268
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/project_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -999,10 +999,10 @@ fn create_pyo3_justfile(module: &str, pyo3_python_manager: &Pyo3PythonManager) -
uv lock --upgrade
@develop:
uv run maturin develop
uv run maturin develop --uv
@develop-release:
uv run maturin develop -r
uv run maturin develop -r --uv
@install: && develop
uv sync --frozen --all-extras
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ source: src/project_generator.rs
expression: content
snapshot_kind: text
---
"@_default:\n just --list\n\n@lock:\n uv lock\n\n@lock-upgrade:\n uv lock --upgrade\n\n@develop:\n uv run maturin develop\n\n@develop-release:\n uv run maturin develop -r\n\n@install: && develop\n uv sync --frozen --all-extras\n\n@install-release: && develop-release\n uv sync --frozen --all-extras\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@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@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@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@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"

0 comments on commit f7bc268

Please sign in to comment.