summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-08 23:38:39 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-10 16:29:59 -0600
commit9f379b2920f0aa3acf899215b6050f6e8728ab48 (patch)
tree9f11b8dcb3b281fd3fe1e315b108ace4ba7b1588 /GNUmakefile
parent4695e6a07bf6b676b76864c3aa02e18121f0e291 (diff)
make lint: Adopt shfmt
tusb_helpers.h.gen got a little manual fussing here
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 0f87acc..0955a6a 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -127,6 +127,7 @@ lint/c: lint/%: build-aux/lint-h build-aux/get-dscname
./build-aux/lint-h $(filter %.h,$(sources_$*))
lint/sh lint/bash: lint/%:
shellcheck $(sources_$*)
+ shfmt --diff --case-indent --simplify $(sources_$*)
lint/python3: lint/%: build-aux/venv
./build-aux/venv/bin/mypy --strict --scripts-are-modules $(sources_$*)
./build-aux/venv/bin/black --check $(sources_$*)
@@ -146,7 +147,7 @@ format:
format/c: format/%:
@: TODO: Adopt a C code-formatter
format/sh format/bash: format/%:
- @: TODO: Adopt shfmt
+ shfmt --write --case-indent --simplify $(sources_$*)
format/python3: format/%: ./build-aux/venv
./build-aux/venv/bin/black $(sources_$*)
./build-aux/venv/bin/isort $(sources_$*)