-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (50 loc) · 1.41 KB
/
Makefile
File metadata and controls
61 lines (50 loc) · 1.41 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
.PHONY: help install install-dev test lint format docs docs-serve docs-deploy clean build
# Default target
help:
@echo "Available commands:"
@echo " install - Install package dependencies"
@echo " install-dev - Install package with development dependencies"
@echo " test - Run tests"
@echo " lint - Run linting checks"
@echo " format - Format code with black and isort"
@echo " docs - Build documentation"
@echo " docs-serve - Serve documentation locally"
@echo " docs-deploy - Deploy documentation to GitHub Pages"
@echo " clean - Clean build artifacts"
@echo " build - Build package"
# Install package
install:
uv sync
# Install with development dependencies
install-dev:
uv sync --extra dev
# Run tests
test:
uv run pytest tests/
# Run linting
lint:
uv run black --check hyperdb/ tests/
uv run isort --check-only hyperdb/ tests/
# Format code
format:
uv run black hyperdb/ tests/
uv run isort hyperdb/ tests/
# Build documentation
docs:
uv run --extra docs mkdocs build
# Serve documentation locally
docs-serve:
uv run --extra docs mkdocs serve
# Deploy documentation to GitHub Pages
docs-deploy:
uv run --extra docs mkdocs gh-deploy
# Clean build artifacts
clean:
rm -rf dist/
rm -rf build/
rm -rf *.egg-info/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
# Build package
build: clean
uv build