-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (42 loc) · 1.52 KB
/
justfile
File metadata and controls
49 lines (42 loc) · 1.52 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
44
45
46
47
48
49
set positional-arguments
# Sets up a Python virtual environment.
setup_env:
@echo "Setting up virtual environment..."
python3.11 -m venv .venv --system-site-packages
echo 'export MPLBACKEND=Agg' >> .venv/bin/activate
# Install project package, Python libs, browser engine etc.
build_project:
#!/usr/bin/env bash
echo "Installing project..."
source .venv/bin/activate
pip install -e .
playwright install --with-deps firefox
# Install development dependencies.
install_dev_deps:
#!/usr/bin/env bash
echo "Installing development dependencies..."
source .venv/bin/activate
pip install -e .[dev]
# Run static code checks using pre-commit.
run_static_checks:
#!/usr/bin/env bash
echo "Running static checks..."
source .venv/bin/activate
pre-commit run --all-files
# Run mlflow tracking server for experiment tracking and artifact storage.
setup_mlflow_server:
#!/usr/bin/env bash
echo "Setting up MLflow server..."
source .venv/bin/activate
mlflow server --backend-store-uri sqlite:///mlflow_tracking.db --default-artifact-root ./mlflow_artifacts/ --host 0.0.0.0 --port 5000
# Run TensorBoard server for visualizing training metrics and logs.
setup_tensorboard_server:
#!/usr/bin/env bash
echo "Setting up TensorBoard..."
source .venv/bin/activate
tensorboard --host 0.0.0.0 --port 5001 --logdir tensorboard/
# Run an arbitrary python script inside the virtual environment.
run_python *args:
#!/usr/bin/env bash
source .venv/bin/activate
python "$@"