Debian Codegraph @

scripts/setup

raw
1 #!/usr/bin/env bash
2 # Setups the repository.
3
4 # Stop on errors
5 set -e
6
7 if [ ! -n "$DEVCONTAINER" ] && [ ! -n "$VIRTUAL_ENV" ];then
8 python3 -m venv venv
9 source venv/bin/activate
10 fi
11
12 python3 -m pip install -r requirements_dev.txt
13
14 pre-commit install
15
16 echo Done