diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-08-22 15:27:14 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-08-22 15:27:14 +0200 |
| commit | 515ca7fadd11276421ba9d9be217a07b2e6b1652 (patch) | |
| tree | 58b53b87813a33a04a918741d524d839344913d9 /scripts/gen_map/tools/check-pylint | |
| parent | f44dbadbf41ec784a46a7fb7818d2ff822d1255a (diff) | |
| download | unterricht-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/tools/check-pylint')
| -rwxr-xr-x | scripts/gen_map/tools/check-pylint | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/gen_map/tools/check-pylint b/scripts/gen_map/tools/check-pylint new file mode 100755 index 00000000..9b7c7e5c --- /dev/null +++ b/scripts/gen_map/tools/check-pylint @@ -0,0 +1,22 @@ +#!/bin/bash + +PYLINT_EXIT=${1} + +# pylint error masks +FATAL_MASK=1 +ERROR_MASK=2 +WARNING_MASK=4 +REFACTOR_MASK=8 +CONVENTION_MASK=16 +USAGE_ERROR_MASK=32 + +# fail on fatal +[[ $(( $PYLINT_EXIT & $FATAL_MASK )) -gt 0 ]] && exit $PYLINT_EXIT + +# fail on error +[[ $(( $PYLINT_EXIT & $ERROR_MASK )) -gt 0 ]] && exit $PYLINT_EXIT + +# fail on warning +[[ $(( $PYLINT_EXIT & $WARNING_MASK )) -gt 0 ]] && exit $PYLINT_EXIT + +exit 0 |
