aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-05-11 12:10:39 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-06-02 11:18:47 +0200
commit9d2275763919023653fabcac9db720e60630472c (patch)
tree803fa48c6a4363dde8c00ae436ae35454881c18e /Makefile
parent628c3eefd6bed9f5b8195b08566713dc6ba0420c (diff)
downloadallocbench-9d2275763919023653fabcac9db720e60630472c.tar.gz
allocbench-9d2275763919023653fabcac9db720e60630472c.zip
Makefile: add new pylint check-target which fails on errors and warnings
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 662d3e8..67f0d42 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ export CXXFLAGS = -std=c++11 $(CFLAGS) -fno-exceptions
export LDFLAGS = -pthread -static-libgcc
export LDXXFLAGS = $(LDFLAGS) -static-libstdc++
-.PHONY: all clean pylint yapf tags check $(MAKEFILES) $(CMAKELISTS)
+.PHONY: all clean pylint format tags check check-format check-pylint $(MAKEFILES) $(CMAKELISTS)
all: $(OBJDIR)/ccinfo $(MAKEFILES) $(CMAKELISTS)
$(CMAKELISTS):
@@ -47,13 +47,16 @@ $(OBJDIR):
clean:
rm -rf $(OBJDIR)
-pylint:
- pylint $(PYTHONFILES)
+check-pylint:
+ pylint -j 0 $(PYTHONFILES) || ./tools/check-pylint
-yapf:
+format:
yapf -i $(PYTHONFILES)
+check-format:
+ yapf -q -d $(PYTHONFILES)
+
tags:
ctags -R --exclude="build/*" --exclude="cache/*" --exclude="doc/*" --exclude="results/*"
-check: pylint
+check: check-pylint check-format