Skip to content
Snippets Groups Projects
Commit a8370953 authored by ar's avatar ar Committed by q3k
Browse files

tools/mypy: only scan the actual app directory

the script was refering to an undefined variable, which made it scan
the whole python_payload/apps/ directory. as a side effect the run is
ever so slightly faster now, but scanning the whole directory just once
would be faster.

also added a check against that to the set line on top
parent c05758fa
No related branches found
No related tags found
1 merge request!160tools/mypy: only scan the actual app directory
Pipeline #6926 passed
#!/usr/bin/env bash
set -e
set -e -u
if [ ! -f sdkconfig.defaults ] || [ ! -f recovery/sdkconfig.defaults ]; then
echo >/dev/stderr "Run this script for the root of the repository (ie. tools/mypy.sh)."
......@@ -28,7 +28,7 @@ _mypy python_payload/main.py
for f in python_payload/apps/*/flow3r.toml; do
app_name="$(basename $(dirname $f))"
echo "Checking ${app_name}..."
_mypy python_payload/apps/${app}
_mypy python_payload/apps/${app_name}
done
if [ $failed ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment