File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 rev : v5.0.0
44 hooks :
55 - id : end-of-file-fixer
6+ exclude : (^|/)requirements.*\.txt$
67 - id : trailing-whitespace
78 - id : check-yaml
89 - id : check-added-large-files
Original file line number Diff line number Diff line change 1+ @ echo off
2+
3+ IF NOT EXIST .venv (
4+ python -m venv .venv
5+ )
6+
7+ CALL .venv\Scripts\activate.bat
8+
9+ pip install --upgrade pip
10+ pip install pre-commit
11+
12+ IF EXIST requirements.txt (
13+ pip install -r requirements.txt
14+ )
15+
16+ pre-commit install
17+
18+ ECHO Setup complete
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ if [ ! -d " .venv" ]; then
6+ python3 -m venv .venv
7+ fi
8+
9+ source .venv/bin/activate
10+
11+ pip install --upgrade pip
12+ pip install pre-commit
13+
14+ if [ -f " requirements.txt" ]; then
15+ pip install -r requirements.txt
16+ fi
17+
18+ pre-commit install
19+
20+ echo " Setup complete"
You can’t perform that action at this time.
0 commit comments