We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41a964b commit 1b97e49Copy full SHA for 1b97e49
dev-setup.sh
@@ -1,17 +1,12 @@
1
-#!/bin/bash
2
-
3
-# Create venv if not present
+# Create venv if not already present
4
if [ ! -d "venv" ]; then
5
- python3 -m venv venv || { echo "Failed to create venv. Try: sudo apt install python3-venv"; exit 1; }
+ python3 -m pip install venv
+ python3 -m venv venv
6
fi
7
8
# Activate the desired venv
9
source venv/bin/activate
10
11
-# Install package
12
python3 -m pip install --editable .[dev] --upgrade
13
14
-# Install pre-commit hooks if available
15
-if command -v pre-commit &> /dev/null; then
16
- pre-commit install
17
-fi
+pre-commit install
0 commit comments