mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
feat: add viv shim
plus more major refactors
This commit is contained in:
parent
298e8b274c
commit
900dcefff7
3 changed files with 517 additions and 421 deletions
|
@ -4,7 +4,7 @@ default_install_hook_types:
|
||||||
- pre-commit
|
- pre-commit
|
||||||
- post-commit
|
- post-commit
|
||||||
default_stages:
|
default_stages:
|
||||||
- pre-commit
|
- commit
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 23.3.0
|
rev: 23.3.0
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
TAG=$(git describe --tags --always --dirty=-dev)
|
TAG=$(git describe --tags --always --dirty=-dev)
|
||||||
VERSION="${TAG#v}"
|
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
|
if [[ "$(git diff --name-only HEAD HEAD~1)" == *"src/viv/viv.py"* ]]; then
|
||||||
sed -i "s/__version__ = \".*\"/__version__ = \"$VERSION\"/g" src/viv/viv.py
|
sed -i "s/__version__ = \".*\"/__version__ = \"$VERSION\"/g" src/viv/viv.py
|
||||||
fi
|
fi
|
||||||
|
|
932
src/viv/viv.py
932
src/viv/viv.py
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue