diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2022-07-04 13:37:45 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2022-07-04 13:37:45 +0200 |
| commit | 87125abeee024a0ad1ab30d157b41c34fb578490 (patch) | |
| tree | 63cf2379d8f1106e2dc1447022015f49610648c5 /Makefile | |
| parent | 58634375c9d1f8f73404ae21c63b60b05413bd5d (diff) | |
| download | geldschieberbot-87125abeee024a0ad1ab30d157b41c34fb578490.tar.gz geldschieberbot-87125abeee024a0ad1ab30d157b41c34fb578490.zip | |
add python development tooling
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bc47e64 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +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) + +.PHONY: test +test: + python3 test.py |
