-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (44 loc) · 1.33 KB
/
Makefile
File metadata and controls
56 lines (44 loc) · 1.33 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
# Makefile for OpenCode Python SDK
.PHONY: help install install-dev test test-cov format lint type-check clean build
help:
@echo "OpenCode Python SDK - Development Commands"
@echo ""
@echo "Available commands:"
@echo " make install - Install package"
@echo " make install-dev - Install package with dev dependencies"
@echo " make test - Run tests"
@echo " make test-cov - Run tests with coverage"
@echo " make format - Format code with black and isort"
@echo " make lint - Run linters"
@echo " make type-check - Run type checking with mypy"
@echo " make clean - Clean build artifacts"
@echo " make build - Build package"
install:
pip install -e .
install-dev:
pip install -e ".[dev]"
test:
pytest tests/
test-cov:
pytest tests/ --cov=opencode_sdk --cov-report=html --cov-report=term
format:
black opencode_sdk/ tests/ examples/
isort opencode_sdk/ tests/ examples/
lint:
black --check opencode_sdk/ tests/ examples/
isort --check opencode_sdk/ tests/ examples/
type-check:
mypy opencode_sdk/
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache/
rm -rf .mypy_cache/
rm -rf htmlcov/
rm -rf .coverage
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
build: clean
python -m build
.DEFAULT_GOAL := help