From 12a86812d9a0ef286952b1dd4d4184fcaf9489cd Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Wed, 23 Dec 2020 02:05:58 -0800 Subject: [PATCH] Added "apply-lints" recipe to Makefile that modifies files in place to apply lints. (#925) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 6aa8c6833..ef48a5983 100644 --- a/Makefile +++ b/Makefile @@ -139,6 +139,10 @@ lint: mypy --ignore-missing-imports pyodide_build/ src/ packages/micropip/micropip/ packages/*/test* +apply-lints: + clang-format-6.0 -i src/*.c src/*.h src/*.js src/*/*.c src/*/*.h src/*/*.js + black --exclude tools/file_packager.py . + benchmark: all python benchmark/benchmark.py $(HOSTPYTHON) build/benchmarks.json python benchmark/plot_benchmark.py build/benchmarks.json build/benchmarks.png