Added "apply-lints" recipe to Makefile that modifies files in place to apply lints. (#925)

This commit is contained in:
Hood Chatham 2020-12-23 02:05:58 -08:00 committed by GitHub
parent 41592637e6
commit 12a86812d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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