freed /data of stuff that is only github relevant

This commit is contained in:
sezanzeb 2020-11-27 00:36:19 +01:00
parent 4563f950e7
commit 9b928d6ab5

View File

@ -3,7 +3,7 @@
coverage_badge() { coverage_badge() {
# https://github.com/dbrgn/coverage-badge # https://github.com/dbrgn/coverage-badge
coverage run --branch --source=/usr/lib/python3.8/site-packages/keymapper tests/test.py coverage run --branch --source=/usr/lib/python3.8/site-packages/keymapper tests/test.py
python3 -m coverage_badge > data/coverage.svg python3 -m coverage_badge > readme/coverage.svg
echo "coverage badge created" echo "coverage badge created"
} }
@ -12,7 +12,7 @@ pylint_badge() {
pylint_output=$(pylint keymapper --extension-pkg-whitelist=evdev) pylint_output=$(pylint keymapper --extension-pkg-whitelist=evdev)
rating=$(echo $pylint_output | grep -Po "rated at .+?/" | grep -Po "\d+.\d+") rating=$(echo $pylint_output | grep -Po "rated at .+?/" | grep -Po "\d+.\d+")
rm data/pylint.svg rm data/pylint.svg
anybadge -l pylint -v $rating -f data/pylint.svg pylint anybadge -l pylint -v $rating -f readme/pylint.svg pylint
echo "pylint badge created" echo "pylint badge created"
} }