mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-01-12 22:44:55 +08:00
Adds precommit hooks based on #433 to our repository. Only one file here is new - the configuration for the hooks, everything else is linting/formatting fixes. We do not run the typechecker globally since that would be quite lengthy to clean up - instead we will have to incrementally clean up type check issues as we go.
9 lines
151 B
Bash
Executable File
9 lines
151 B
Bash
Executable File
#!/usr/bin/env bash
|
|
export VERSION=`python -m setuptools_scm`
|
|
|
|
if [[ -n `git status --porcelain` ]]; then
|
|
VERSION=$VERSION-dirty
|
|
fi
|
|
|
|
echo $VERSION
|