summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xzephyr/firmware_builder.py4
-rw-r--r--zephyr/projects/corsola/krabby/BUILD.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/zephyr/firmware_builder.py b/zephyr/firmware_builder.py
index d04941f752..22d882094b 100755
--- a/zephyr/firmware_builder.py
+++ b/zephyr/firmware_builder.py
@@ -133,6 +133,10 @@ def test(opts):
# proceeding.
subprocess.run([zephyr_dir / 'zmake' / 'run_tests.sh'], check=True)
+ # Run formatting checks on all BUILD.py files.
+ config_files = zephyr_dir.rglob("**/BUILD.py")
+ subprocess.run(["black", "--diff", "--check", *config_files], check=True)
+
subprocess.run(['zmake', '-D', 'testall'], check=True)
# Run the test with coverage also, as sometimes they behave differently.
diff --git a/zephyr/projects/corsola/krabby/BUILD.py b/zephyr/projects/corsola/krabby/BUILD.py
index 84ba72bdf7..e533544d8c 100644
--- a/zephyr/projects/corsola/krabby/BUILD.py
+++ b/zephyr/projects/corsola/krabby/BUILD.py
@@ -11,5 +11,6 @@ register_binman_project(
"gpio.dts",
"i2c.dts",
"motionsense.dts",
- "pwm.dts"],
+ "pwm.dts",
+ ],
)