forked from McMaster-Exoskeleton/exoskeleton-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 1.39 KB
/
Makefile
File metadata and controls
56 lines (43 loc) · 1.39 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
.PHONY: help install install-dev test lint format clean build docs
help:
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
install:
pip3 install -e .
install-dev: ## Install package with development dependencies
pip3 install -e ".[dev]"
install-all: ## Install all optional dependencies
pip3 install -e ".[all]"
test: ## Run tests with pytest
pytest
test-cov: ## Run tests with coverage report
pytest --cov --cov-report=html --cov-report=term
test-fast: ## Run tests excluding slow tests
pytest -m "not slow"
lint: ## Run linters (ruff, mypy)
ruff check src/ tests/
mypy src/
lint-fix: ## Fix linting issues automatically
ruff check --fix src/ tests/
format: ## Format code with black and ruff
black src/ tests/
ruff check --fix src/ tests/
format-check: ## Check code formatting without modifying files
black --check src/ tests/
ruff check src/ tests/
clean: ## Remove build artifacts and cache files
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .ruff_cache
rm -rf htmlcov
rm -rf .coverage
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
train: ## Run training script
python3 scripts/train.py