-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
43 lines (33 loc) · 1.09 KB
/
justfile
File metadata and controls
43 lines (33 loc) · 1.09 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
32
33
34
35
36
37
38
39
40
41
42
43
python_version = "3.13"
default:
just --list
pin-deps:
python{{python_version}} -m piptools compile --generate-hashes requirements.in
sync-deps:
python{{python_version}} -m piptools sync requirements.txt
upgrade-deps:
python{{python_version}} -m piptools compile --upgrade requirements.in
python{{python_version}} -m piptools sync requirements.txt
outdated-deps:
python{{python_version}} -m piptools compile --outdated
setup:
@echo "Building Python virtual environment con {{python_version}}..."
python{{python_version}} -m venv .venv --update-deps
python{{python_version}} -m pip install --upgrade pip-tools
source .venv/bin/activate
echo "Installing dependencies..."
@just pin-deps
@just sync-deps
@echo "✅ Virtual environment is ready and activated!!"
reset:
rm -rf .venv
@just setup
run:
python{{python_version}} src/main.py
test:
python{{python_version}} -m pytest tests/
clean:
@echo "Cleaning temp files..."
rm -rf .pytest_cache
find . -type d -name "__pycache__" -exec rm -rf {} +
@echo "✨ Clean complete!"