Merge pull request #204 from mdboom/lint-pyodide-build

MAINT: Lint all the things
This commit is contained in:
Roman Yurchak 2018-10-02 16:24:59 +02:00 committed by GitHub
commit 070c898535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View File

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

View File

@ -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'])

View File

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