-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
105 lines (82 loc) · 2.04 KB
/
justfile
File metadata and controls
105 lines (82 loc) · 2.04 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Lavoisier Development Commands
# Use `just --list` to see all available commands
# Default recipe
default:
@just --list
# Environment setup
setup-dev:
python -m venv .venv
.venv/bin/pip install -e ".[dev,ai,docs]"
.venv/bin/pre-commit install
@echo "Development environment setup complete!"
@echo "Activate with: source .venv/bin/activate"
# Install package
install:
pip install -e .
install-dev:
pip install -e ".[dev,ai,docs]"
pre-commit install
# Testing
test:
pytest tests/ -v
test-cov:
pytest tests/ -v --cov=lavoisier --cov-report=html --cov-report=term-missing
test-integration:
pytest tests/ -v -m integration
test-slow:
pytest tests/ -v -m slow
# Code quality
lint:
black --check lavoisier tests
isort --check-only lavoisier tests
flake8 lavoisier tests
mypy lavoisier
bandit -r lavoisier
format:
black lavoisier tests
isort lavoisier tests
cargo fmt --all
# Rust operations
build-rust:
cargo build --release
test-rust:
cargo test
clippy:
cargo clippy --all-targets --all-features -- -D warnings
# Documentation
docs:
cd docs && make html
docs-serve:
cd docs/_build/html && python -m http.server 8080
# Cleaning
clean:
rm -rf build/ dist/ *.egg-info/ .pytest_cache/ htmlcov/ target/debug
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
# Building
build: clean
python -m build
# Docker operations
docker-build:
docker build -t lavoisier:latest .
docker build -f Dockerfile.dev -t lavoisier:dev .
docker-run:
docker-compose up -d
docker-stop:
docker-compose down
# Benchmarking
benchmark:
pytest tests/performance/ -v --benchmark-only
# Release
release-check:
just test
just lint
just build
@echo "Release checks passed!"
# Utilities
env-info:
@echo "Python: $(python --version)"
@echo "Rust: $(rustc --version)"
@echo "Cargo: $(cargo --version)"
@echo "Git branch: $(git branch --show-current)"
@echo "Git commit: $(git rev-parse --short HEAD)"