Skip to content

Commit 7fb64d3

Browse files
committed
Prefix binary commands with uv run to improve interoperability between different execution environments
1 parent 667c8b4 commit 7fb64d3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tools/build-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ pushd "${REPO_ROOT}" 2>&1 > /dev/null
88
echo "Building documentation..."
99
mkdir -p build
1010
cd docs
11-
make html
11+
uv run --all-groups make html
1212

1313
popd 2>&1 > /dev/null

tools/lint-package.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,31 @@ STATUS=0
1111
set +e
1212

1313
echo "Running flake8..."
14-
flake8 src/python_training_project --format=pylint > build/flake8.txt
14+
uv run --all-groups flake8 src/python_training_project --format=pylint > build/flake8.txt
1515
if [ $? -ne 0 ]; then
1616
STATUS=1
1717
fi
1818

1919
echo "Running mypy..."
20-
mypy src/python_training_project > build/mypy.txt
20+
uv run --all-groups mypy src/python_training_project > build/mypy.txt
2121
if [ $? -ne 0 ]; then
2222
STATUS=1
2323
fi
2424

2525
echo "Running pylint..."
26-
pylint src/python_training_project --msg-template="{path}:{line}: [{msg_id}, {obj}] {msg} ({symbol})" > build/pylint.txt
26+
uv run --all-groups pylint src/python_training_project --msg-template="{path}:{line}: [{msg_id}, {obj}] {msg} ({symbol})" > build/pylint.txt
2727
if [ $? -ne 0 ]; then
2828
STATUS=1
2929
fi
3030

3131
echo "Running ruff check..."
32-
ruff check > build/ruff.txt
32+
uv run --all-groups ruff check > build/ruff.txt
3333
if [ $? -ne 0 ]; then
3434
STATUS=1
3535
fi
3636

3737
echo "Running ruff format..."
38-
ruff format --check
38+
uv run --all-groups ruff format --check
3939
if [ $? -ne 0 ]; then
4040
STATUS=1
4141
fi

tools/test-package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ pushd "${REPO_ROOT}" 2>&1 > /dev/null
88
mkdir -p build
99

1010
echo "Running tests..."
11-
pytest
11+
uv run --all-groups pytest
1212

1313
popd 2>&1 > /dev/null

0 commit comments

Comments
 (0)