mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 02:00:03 +01:00
26 lines
378 B
Bash
Executable file
26 lines
378 B
Bash
Executable file
#!/usr/bin/env -S bash -e
|
|
#set up local repository
|
|
|
|
install_pip()
|
|
{
|
|
package=$1
|
|
args=$2
|
|
|
|
python3 -m pip install $package $args
|
|
}
|
|
|
|
setup_precommit()
|
|
{
|
|
echo "Configuring pre-commit hooks"
|
|
install_pip pre-commit
|
|
pre-commit install
|
|
}
|
|
|
|
setup_git()
|
|
{
|
|
echo "Configuring git environment"
|
|
git config include.path ../.gitconfig
|
|
}
|
|
|
|
setup_git
|
|
setup_precommit
|