feat: add viv shim plus more major refactors

This commit is contained in:
Daylin Morgan 2023-05-27 17:00:54 -05:00
parent 298e8b274c
commit 900dcefff7
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
3 changed files with 517 additions and 421 deletions

View file

@ -4,7 +4,7 @@ default_install_hook_types:
- pre-commit
- post-commit
default_stages:
- pre-commit
- commit
repos:
- repo: https://github.com/psf/black
rev: 23.3.0

View file

@ -1,6 +1,10 @@
#!/usr/bin/env bash
TAG=$(git describe --tags --always --dirty=-dev)
VERSION="${TAG#v}"
if [ "$NO_VERIFY" ]; then
echo 'post-commit hook skipped' 1>&2
exit 0
fi
if [[ "$(git diff --name-only HEAD HEAD~1)" == *"src/viv/viv.py"* ]]; then
sed -i "s/__version__ = \".*\"/__version__ = \"$VERSION\"/g" src/viv/viv.py
fi

File diff suppressed because it is too large Load diff