Skip to content

Commit 965aebc

Browse files
committed
Rename ruff command to ruff-check in justfiles
1 parent 9660121 commit 965aebc

4 files changed

+19
-19
lines changed

src/project_generator.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -840,15 +840,15 @@ fn create_poetry_justfile(module: &str) -> String {
840840
@lint:
841841
echo mypy
842842
just --justfile {{{{justfile()}}}} mypy
843-
echo ruff
844-
just --justfile {{{{justfile()}}}} ruff
843+
echo ruff-check
844+
just --justfile {{{{justfile()}}}} ruff-check
845845
echo ruff-format
846846
just --justfile {{{{justfile()}}}} ruff-format
847847
848848
@mypy:
849849
poetry run mypy {module} tests
850850
851-
@ruff:
851+
@ruff-check:
852852
poetry run ruff check {module} tests
853853
854854
@ruff-format:
@@ -889,8 +889,8 @@ fn create_pyo3_justfile(module: &str) -> String {
889889
just --justfile {{{{justfile()}}}} fmt
890890
echo mypy
891891
just --justfile {{{{justfile()}}}} mypy
892-
echo ruff linting
893-
just --justfile {{{{justfile()}}}} ruff
892+
echo ruff check
893+
just --justfile {{{{justfile()}}}} ruff-check
894894
echo ruff formatting
895895
just --justfile {{{{justfile()}}}} ruff-format
896896
@@ -906,8 +906,8 @@ fn create_pyo3_justfile(module: &str) -> String {
906906
@mypy:
907907
mypy .
908908
909-
@ruff:
910-
ruff check . --fix
909+
@ruff-check:
910+
ruff check {module} tests --fix
911911
912912
@ruff-format:
913913
ruff format {module} tests
@@ -926,15 +926,15 @@ fn create_setuptools_justfile(module: &str) -> String {
926926
@lint:
927927
echo mypy
928928
just --justfile {{{{justfile()}}}} mypy
929-
echo ruff
930-
just --justfile {{{{justfile()}}}} ruff
929+
echo ruff-check
930+
just --justfile {{{{justfile()}}}} ruff-check
931931
echo ruff-format
932932
just --justfile {{{{justfile()}}}} ruff-format
933933
934934
@mypy:
935935
python -m mypy {module} tests
936936
937-
@ruff:
937+
@ruff-check:
938938
python -m ruff check {module} tests
939939
940940
@ruff-format:
@@ -957,15 +957,15 @@ fn create_uv_justfile(module: &str) -> String {
957957
@lint:
958958
echo mypy
959959
just --justfile {{{{justfile()}}}} mypy
960-
echo ruff
961-
just --justfile {{{{justfile()}}}} ruff
960+
echo ruff-check
961+
just --justfile {{{{justfile()}}}} ruff-check
962962
echo ruff-format
963963
just --justfile {{{{justfile()}}}} ruff-format
964964
965965
@mypy:
966966
uv run mypy {module} tests
967967
968-
@ruff:
968+
@ruff-check:
969969
uv run ruff check {module} tests
970970
971971
@ruff-format:
@@ -990,15 +990,15 @@ fn create_pixi_justfile() -> String {
990990
@lint:
991991
echo mypy
992992
just --justfile {{{{justfile()}}}} mypy
993-
echo ruff
994-
just --justfile {{{{justfile()}}}} ruff
993+
echo ruff-check
994+
just --justfile {{{{justfile()}}}} ruff-check
995995
echo ruff-format
996996
just --justfile {{{{justfile()}}}} ruff-format
997997
998998
@mypy:
999999
pixi run run-mypy
10001000
1001-
@ruff:
1001+
@ruff-check:
10021002
pixi run run-ruff-check
10031003
10041004
@ruff-format:

src/snapshots/python_project__project_generator__tests__save_justfile_maturin.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: src/project_generator.rs
33
expression: content
44
---
5-
"@_default:\n just --list\n\n@develop:\n maturin develop\n\n@develop-release:\n maturin develop -r\n\n@install: && develop\n python -m pip install -r requirements-dev.txt\n\n@install-release: && develop-release\n python -m pip install -r requirements-dev.txt\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 linting\n just --justfile {{justfile()}} ruff\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 mypy .\n\n@ruff:\n ruff check . --fix\n\n@ruff-format:\n ruff format my_project tests\n\n@test:\n pytest\n"
5+
"@_default:\n just --list\n\n@develop:\n maturin develop\n\n@develop-release:\n maturin develop -r\n\n@install: && develop\n python -m pip install -r requirements-dev.txt\n\n@install-release: && develop-release\n python -m pip install -r requirements-dev.txt\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 mypy .\n\n@ruff-check:\n ruff check my_project tests --fix\n\n@ruff-format:\n ruff format my_project tests\n\n@test:\n pytest\n"

src/snapshots/python_project__project_generator__tests__save_justfile_poetry.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: src/project_generator.rs
33
expression: content
44
---
5-
"@_default:\n just --list\n\n@lint:\n echo mypy\n just --justfile {{justfile()}} mypy\n echo ruff\n just --justfile {{justfile()}} ruff\n echo ruff-format\n just --justfile {{justfile()}} ruff-format\n\n@mypy:\n poetry run mypy my_project tests\n\n@ruff:\n poetry run ruff check my_project tests\n\n@ruff-format:\n poetry run ruff format my_project tests\n\n@test:\n -poetry run pytest -x\n\n@install:\n poetry install\n"
5+
"@_default:\n just --list\n\n@lint:\n echo mypy\n just --justfile {{justfile()}} mypy\n echo ruff-check\n just --justfile {{justfile()}} ruff-check\n echo ruff-format\n just --justfile {{justfile()}} ruff-format\n\n@mypy:\n poetry run mypy my_project tests\n\n@ruff-check:\n poetry run ruff check my_project tests\n\n@ruff-format:\n poetry run ruff format my_project tests\n\n@test:\n -poetry run pytest -x\n\n@install:\n poetry install\n"

src/snapshots/python_project__project_generator__tests__save_justfile_setuptools.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source: src/project_generator.rs
33
expression: content
44
---
5-
"@_default:\n just --list\n\n@lint:\n echo mypy\n just --justfile {{justfile()}} mypy\n echo ruff\n just --justfile {{justfile()}} ruff\n echo ruff-format\n just --justfile {{justfile()}} ruff-format\n\n@mypy:\n python -m mypy my_project tests\n\n@ruff:\n python -m ruff check my_project tests\n\n@ruff-format:\n python -m ruff format my_project tests\n\n@test:\n -python -m pytest -x\n\n@install:\n python -m pip install -r requirements-dev.txt\n"
5+
"@_default:\n just --list\n\n@lint:\n echo mypy\n just --justfile {{justfile()}} mypy\n echo ruff-check\n just --justfile {{justfile()}} ruff-check\n echo ruff-format\n just --justfile {{justfile()}} ruff-format\n\n@mypy:\n python -m mypy my_project tests\n\n@ruff-check:\n python -m ruff check my_project tests\n\n@ruff-format:\n python -m ruff format my_project tests\n\n@test:\n -python -m pytest -x\n\n@install:\n python -m pip install -r requirements-dev.txt\n"

0 commit comments

Comments
 (0)