diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-03-22 14:57:33 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-03-22 14:57:33 +0100 |
| commit | bc53d662cb3d0b5b08986e7e220444c01728001a (patch) | |
| tree | 00a62db2a002dc549b16d2b4875ea93837f644fb /Makefile | |
| download | kmeans-main.tar.gz kmeans-main.zip | |
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f84be4f --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +PYTHONFILES = $(shell find -name "*.py" -not -path "./.git/*") + +.PHONY: pylint format check check-format check-pylint check-mypy + +check-pylint: + pylint -j 0 $(PYTHONFILES) || ./tools/check-pylint $$? + +format: + yapf -i $(PYTHONFILES) + +check-format: + yapf -d $(PYTHONFILES) + +check-mypy: + mypy --ignore-missing-imports $(PYTHONFILES) + +check: check-pylint check-format check-mypy |
