mirror of https://github.com/pyodide/pyodide.git
MAINT Reorder make lint to typecheck first before running formatters (#2139)
This commit is contained in:
parent
0e77ba439b
commit
597857fb23
11
Makefile
11
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue