aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_map/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-08-22 15:27:14 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-08-22 15:27:14 +0200
commit515ca7fadd11276421ba9d9be217a07b2e6b1652 (patch)
tree58b53b87813a33a04a918741d524d839344913d9 /scripts/gen_map/Makefile
parentf44dbadbf41ec784a46a7fb7818d2ff822d1255a (diff)
downloadunterricht-515ca7fadd11276421ba9d9be217a07b2e6b1652.tar.gz
unterricht-515ca7fadd11276421ba9d9be217a07b2e6b1652.zip
add script to create rough map for the school year
school hoildays are retrieved from schulferien.eu and the lehrplan is scraped from lehrplanplus.bayern.de.
Diffstat (limited to 'scripts/gen_map/Makefile')
-rw-r--r--scripts/gen_map/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/gen_map/Makefile b/scripts/gen_map/Makefile
new file mode 100644
index 00000000..f84be4f4
--- /dev/null
+++ b/scripts/gen_map/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