File tree Expand file tree Collapse file tree 5 files changed +12
-33
lines changed
Expand file tree Collapse file tree 5 files changed +12
-33
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,19 @@ help:
1010clean :
1111 bin/clean.sh
1212
13- lint :
14- bin/lint .sh
13+ check :
14+ @ bin/check .sh
1515
16- fmt :
17- bin/fmt .sh
16+ lint : check
17+ bin/lint .sh
1818
19- test :
19+ test : check
2020 bin/test.sh
2121
2222docs :
2323 cd doc && $(MAKE ) html
2424
25- dist : clean
25+ dist : check clean
2626 uv run python -m build
2727
2828.PHONY : tests
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- case " $CONDA_PREFIX " in
4- * /pyimagej-dev)
5- ;;
6- * )
7- echo " Please run 'make setup' and then 'mamba activate pyimagej-dev' first."
8- exit 1
9- ;;
10- esac
3+ if ! command -v uv > /dev/null 2>&1 ; then
4+ echo " Please install uv (https://docs.astral.sh/uv/getting-started/installation/)."
5+ exit 1
6+ fi
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ dir=$(dirname "$0")
44cd " $dir /.."
55
66exitCode=0
7- uv run ruff check
7+ uv run ruff check --fix
88code=$? ; test $code -eq 0 || exitCode=$code
9- uv run ruff format --check
9+ uv run ruff format
1010code=$? ; test $code -eq 0 || exitCode=$code
1111uv run validate-pyproject pyproject.toml
1212code=$? ; test $code -eq 0 || exitCode=$code
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments