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-09 13:29:37 -0600
commita435e962cf55d1b9573c8df47da1eba4e84e3520 (patch)
tree3dd62f5eae5884f4d0852146e67433541f41df49 /GNUmakefile
parentb1e45f71eb61d3e40ffce176d0c75e033c673043 (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 bfc2c5a..5a2ff93 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_$*)