From 6536e5a07c1890c59b88f61dc679164bd8941090 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 1 Oct 2018 19:01:29 -0400 Subject: [PATCH 1/3] Lint all the things --- Makefile | 4 +--- benchmark/benchmark.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 27e2b9698..7a0cb68cb 100644 --- a/Makefile +++ b/Makefile @@ -118,9 +118,7 @@ test: all lint: - flake8 src - flake8 test - flake8 tools/* + flake8 src test tools benchmark/benchmark.py benchmark/plot_benchmark.py clang-format -output-replacements-xml src/*.c src/*.h src/*.js | (! grep ' Date: Tue, 2 Oct 2018 07:54:37 -0400 Subject: [PATCH 2/3] Add pyodide_build to flake8 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7a0cb68cb..743ddf82c 100644 --- a/Makefile +++ b/Makefile @@ -118,7 +118,7 @@ test: all lint: - flake8 src test tools benchmark/benchmark.py benchmark/plot_benchmark.py + 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 ' Date: Tue, 2 Oct 2018 09:17:14 -0400 Subject: [PATCH 3/3] Use raw string to pass linter --- pyodide_build/pywasmcross.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyodide_build/pywasmcross.py b/pyodide_build/pywasmcross.py index 46d5ab5d6..da9f94949 100755 --- a/pyodide_build/pywasmcross.py +++ b/pyodide_build/pywasmcross.py @@ -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