Skip to content

Commit d7ebf1f

Browse files
committed
use ruff for linting
1 parent 1367e25 commit d7ebf1f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/setup_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ if [ -f "${my_venv}/bin/activate" ]; then
1313
# Install test requirements
1414
pip install uv
1515
uv pip install --upgrade -e . -r requirements_test.txt
16+
uv pip install ruff
1617
else
1718
echo "Virtualenv available, bailing out"
1819
exit 2

scripts/tests_and_coverage.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ fi
2828

2929
if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "linting" ] ; then
3030
# Black first to ensure nothings roughing up ruff
31-
echo "... black-ing ..."
32-
black plugwise_usb/ tests/
31+
echo "... ruff checking ..."
32+
ruff check -fix
3333

3434
# TODO: Skip ruff checks as there are too many for now (mainly missing docstrings)
3535
# echo "... ruff-ing ..."
36-
# ruff check --fix plugwise_usb/ tests/
37-
38-
echo "... pylint-ing ..."
39-
pylint plugwise_usb/ tests/
36+
# ruff check --fix plugwise_usb/ tests
37+
echo "... ruff format ..."
38+
ruff format
4039
fi

0 commit comments

Comments
 (0)