diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2021-03-27 11:34:28 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2021-03-27 11:35:41 +0100 |
| commit | 795939a2cf91100b05a81cd597fdb1d47ff76270 (patch) | |
| tree | b9fe071342b95da9405e1ad5ab9d252983ab903c /scripts/Makefile | |
| parent | 18a43ec42d0fc83a49c27ab36886567152eb7fcc (diff) | |
| download | muhqs-game-795939a2cf91100b05a81cd597fdb1d47ff76270.tar.gz muhqs-game-795939a2cf91100b05a81cd597fdb1d47ff76270.zip | |
add script Makefile, python tooling and run yapf in generate_map_img.py
Diffstat (limited to 'scripts/Makefile')
| -rw-r--r-- | scripts/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
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 $$? |
