FEAT: precommit git hooks, based on fusions #913 (#1645)

* init commit for precommit

* some reformatting precommit does
This commit is contained in:
dni ⚡ 2023-05-09 10:41:40 +02:00 committed by GitHub
parent 67d8b67ee5
commit bb9ef7f88c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 315 additions and 98 deletions

View file

@ -89,3 +89,11 @@ bundle:
# increment serviceworker version
sed -i -e "s/CACHE_VERSION =.*/CACHE_VERSION = $$(awk '/CACHE_VERSION =/ { print 1+$$4 }' lnbits/core/static/js/service-worker.js)/" \
lnbits/core/static/js/service-worker.js
install-pre-commit-hook:
@echo "Installing pre-commit hook to git"
@echo "Uninstall the hook with poetry run pre-commit uninstall"
poetry run pre-commit install
pre-commit:
poetry run pre-commit run --all-files