diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 15:56:31 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 15:56:31 +0100 |
| commit | 2543db86014ca3210eb3af72ae4ea34982b5c83c (patch) | |
| tree | 01f30b381904338e5037bfa87882e8e402154dbd /Makefile | |
| parent | 7bbe39e2abde84d2e37485c3162a67655aab58cb (diff) | |
| download | cyberschuessel-2543db86014ca3210eb3af72ae4ea34982b5c83c.tar.gz cyberschuessel-2543db86014ca3210eb3af72ae4ea34982b5c83c.zip | |
add common python Makefile
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..326ceac --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +SRC=$(wildcard *.py) + +.PHONY: check +check: check-pylint check-format check-mypy + +.PHONY: check-pylint +check-pylint: + pylint --rcfile=.pylint.rc -j 0 $(SRC) || ./tools/check-pylint $$? + +.PHONY: check-format +check-format: + yapf -d $(SRC) + +.PHONY: check-format +check-mypy: + mypy $(SRC) + +.PHONY: format +format: + yapf -i $(SRC) |
