mirror of https://github.com/pyodide/pyodide.git
Merge pull request #204 from mdboom/lint-pyodide-build
MAINT: Lint all the things
This commit is contained in:
commit
070c898535
4
Makefile
4
Makefile
|
@ -118,9 +118,7 @@ test: all
|
|||
|
||||
|
||||
lint:
|
||||
flake8 src
|
||||
flake8 test
|
||||
flake8 tools/*
|
||||
flake8 src test tools pyodide_build benchmark/benchmark.py benchmark/plot_benchmark.py
|
||||
clang-format -output-replacements-xml src/*.c src/*.h src/*.js | (! grep '<replacement ')
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import sys
|
|||
sys.path.insert(
|
||||
0, str((Path(__file__).resolve().parents[1] / 'test')))
|
||||
|
||||
import conftest
|
||||
import conftest # noqa
|
||||
|
||||
|
||||
SKIP = set(['fft', 'hyantes'])
|
||||
|
|
|
@ -108,7 +108,7 @@ def handle_command(line, args):
|
|||
for arg in line:
|
||||
if r'/file.c' in arg or '_configtest' in arg:
|
||||
return
|
||||
if re.match('/tmp/.*/source\.[bco]+', arg):
|
||||
if re.match(r'/tmp/.*/source\.[bco]+', arg):
|
||||
return
|
||||
if arg == '-print-multiarch':
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue