-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (28 loc) · 1.07 KB
/
justfile
File metadata and controls
31 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# The default recipe that runs when you just type 'just'. It lists all available recipes.
default:
@just --list
# Install virtual environment and pre-commit hooks
install:
echo "🚀 Creating virtual environment and syncing dependencies with uv"
uv sync --group dev
echo "🚀 Installing project in editable mode"
uv pip install --editable .
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then \
echo "🚀 Installing pre-commit hooks"; \
uv run pre-commit install; \
else \
echo "⚠️ Skipping hook installation because no Git repository was detected."; \
echo " Run 'uv run pre-commit run --all-files' manually to check your code."; \
fi
# Create a virtual environment with uv
venv:
echo "🚀 Creating virtual environment with uv in folder .venv"
python3 -m venv .venv
echo "🚀 Installing uv in the virtual environment"
.venv/bin/pip install --upgrade uv
# Upgrading locked package versions
upgrade:
echo "🚀 Upgrading locked package versions"
uv lock --upgrade
echo "🚀 Syncing dependencies with uv"
uv sync --group dev