Commit 97cdc96f authored by takatost's avatar takatost

update ruff check

parent 892fe927
...@@ -24,7 +24,21 @@ done ...@@ -24,7 +24,21 @@ done
if $api_modified; then if $api_modified; then
echo "Running Ruff linter on api module" echo "Running Ruff linter on api module"
./dev/reformat
# python style checks rely on `ruff` in path
if ! command -v ruff &> /dev/null; then
echo "Installing Ruff ..."
pip install ruff
fi
ruff check ./api
result=$?
if [ $result -ne 0 ]; then
echo "Please run 'dev/reformat' to fix the fixable linting errors."
fi
exit $result
fi fi
if $web_modified; then if $web_modified; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment