From 795939a2cf91100b05a81cd597fdb1d47ff76270 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 27 Mar 2021 11:34:28 +0100 Subject: add script Makefile, python tooling and run yapf in generate_map_img.py --- scripts/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/Makefile (limited to 'scripts/Makefile') diff --git a/scripts/Makefile b/scripts/Makefile new file mode 100644 index 00000000..d866ac4e --- /dev/null +++ b/scripts/Makefile @@ -0,0 +1,14 @@ +.PHONY: check format check-format check-pylint + +PYTHONFILES := $(wildcard *.py) + +check: check-pylint check-format + +format: + yapf -i $(PYTHONFILES) + +check-format: + yapf -d $(PYTHONFILES) + +check-pylint: + pylint --rcfile=.pylint.rc -j 0 $(PYTHONFILES) || ./tools/check-pylint $$? -- cgit v1.2.3