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 050da41 commit f023183Copy full SHA for f023183
justfile
@@ -1,2 +1,24 @@
1
default:
2
echo 'Hello, world!'
3
+
4
+# ---------------------------------------- python ----------------------------------------
5
6
+# install python dependencies and activate pre-commit hooks
7
+[group('python')]
8
+pip-install: check-venv
9
+ pip install -U pip
10
+ pip install -e .
11
+ pre-commit install
12
+alias i: pip-install
13
14
+# ensure virtual environment is active
15
16
+check-venv:
17
+ #!/bin/bash
18
+ PYTHON_PATH=$(which python)
19
+ if [[ $PYTHON_PATH == *".venv/bin/python" ]]; then
20
+ echo "Virtual environment is active."
21
+ else
22
+ echo "Virtual environment is not active."
23
+ exit 1
24
+ fi
0 commit comments