MAINT Reorder make lint to typecheck first before running formatters (#2139)

This commit is contained in:
Hood Chatham 2022-01-29 20:00:52 -08:00 committed by GitHub
parent 0e77ba439b
commit 597857fb23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -138,11 +138,6 @@ update_base_url: \
lint: node_modules/.installed
# check for unused imports, the rest is done by black
flake8 --select=F401 src tools pyodide-build benchmark conftest.py docs packages/matplotlib/src/
find src -type f -regex '.*\.\(c\|h\)' \
| xargs clang-format-6.0 -output-replacements-xml \
| (! grep '<replacement ')
npx prettier --check .
black --check .
mypy --ignore-missing-imports \
pyodide-build/pyodide_build/ \
src/ \
@ -156,6 +151,12 @@ lint: node_modules/.installed
mypy --ignore-missing-imports \
packages/micropip/src/
# Format checks
find src -type f -regex '.*\.\(c\|h\)' \
| xargs clang-format-6.0 -output-replacements-xml \
| (! grep '<replacement ')
npx prettier --check .
black --check .
benchmark: all