-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (39 loc) · 926 Bytes
/
Makefile
File metadata and controls
48 lines (39 loc) · 926 Bytes
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
.PHONY: build clean install dev test lint format help
# Default target
help:
@echo "SpecOps CLI - Available targets:"
@echo ""
@echo " build Build the package (using poetry)"
@echo " clean Remove build artifacts"
@echo " install Install the package locally"
@echo " dev Install in development mode"
@echo " test Run tests"
@echo " lint Run linting"
@echo " format Format code"
@echo ""
# Build using poetry
build:
poetry build
# Clean build artifacts
clean:
rm -rf dist/
rm -rf build/
rm -rf *.egg-info
rm -rf src/*.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
# Install the package
install: build
pip install dist/*.whl
# Development install
dev:
pip install -e .
# Run tests
test:
pytest
# Lint
lint:
ruff check src/
# Format
format:
ruff format src/