Skip to content

Commit cc5a2c4

Browse files
authored
Merge pull request #585 from sanders41/uv-lock
Add option to upgrade uv lock in justfile
2 parents dfa6a3b + a72db44 commit cc5a2c4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/project_generator.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,9 @@ fn create_pyo3_justfile(module: &str, pyo3_python_manager: &Pyo3PythonManager) -
995995
@lock:
996996
uv lock
997997
998+
@lock-upgrade:
999+
uv lock --upgrade
1000+
9981001
@develop:
9991002
uv run maturin develop
10001003
@@ -1160,6 +1163,9 @@ fn create_uv_justfile(module: &str) -> String {
11601163
@lock:
11611164
uv lock
11621165
1166+
@lock-upgrade
1167+
uv lock --upgrade
1168+
11631169
@install:
11641170
uv sync --frozen --all-extras
11651171
"#
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
source: src/project_generator.rs
33
expression: content
4+
snapshot_kind: text
45
---
5-
"@_default:\n just --list\n\n@lock:\n uv lock\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"
6+
"@_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"

0 commit comments

Comments
 (0)