diff --git a/tools/build-docs.sh b/tools/build-docs.sh index b4cc9ae..0e23634 100755 --- a/tools/build-docs.sh +++ b/tools/build-docs.sh @@ -8,6 +8,6 @@ pushd "${REPO_ROOT}" 2>&1 > /dev/null echo "Building documentation..." mkdir -p build cd docs -make html +uv run --all-groups make html popd 2>&1 > /dev/null diff --git a/tools/lint-package.sh b/tools/lint-package.sh index ce76b9d..ae9d0f0 100755 --- a/tools/lint-package.sh +++ b/tools/lint-package.sh @@ -11,31 +11,31 @@ STATUS=0 set +e echo "Running flake8..." -flake8 src/python_training_project --format=pylint > build/flake8.txt +uv run --all-groups flake8 src/python_training_project --format=pylint > build/flake8.txt if [ $? -ne 0 ]; then STATUS=1 fi echo "Running mypy..." -mypy src/python_training_project > build/mypy.txt +uv run --all-groups mypy src/python_training_project > build/mypy.txt if [ $? -ne 0 ]; then STATUS=1 fi echo "Running pylint..." -pylint src/python_training_project --msg-template="{path}:{line}: [{msg_id}, {obj}] {msg} ({symbol})" > build/pylint.txt +uv run --all-groups pylint src/python_training_project --msg-template="{path}:{line}: [{msg_id}, {obj}] {msg} ({symbol})" > build/pylint.txt if [ $? -ne 0 ]; then STATUS=1 fi echo "Running ruff check..." -ruff check > build/ruff.txt +uv run --all-groups ruff check > build/ruff.txt if [ $? -ne 0 ]; then STATUS=1 fi echo "Running ruff format..." -ruff format --check +uv run --all-groups ruff format --check if [ $? -ne 0 ]; then STATUS=1 fi diff --git a/tools/test-package.sh b/tools/test-package.sh index df59698..3b19333 100755 --- a/tools/test-package.sh +++ b/tools/test-package.sh @@ -8,6 +8,6 @@ pushd "${REPO_ROOT}" 2>&1 > /dev/null mkdir -p build echo "Running tests..." -pytest +uv run --all-groups pytest popd 2>&1 > /dev/null