-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 834 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 834 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
.PHONY: setup lint test build clean all help
help:
@echo "Available commands:"
@echo " make lint - Run code quality checks"
@echo " make test - Run tests with coverage"
@echo " make build - Build package distributions"
@echo " make clean - Remove build artifacts"
@echo " make all - Run full CI workflow"
# Install all dependencies
setup:
python -m pip install --upgrade pip
pip install -e ".[dev]"
# Clean build artifacts
clean:
rm -rf dist/ build/ *.egg-info .coverage htmlcov/
# Run linting checks
lint:
black --check --verbose src/ tests/
isort --check --diff src/ tests/
pylint src/ tests/
# Run tests with coverage
test:
pytest --cov=wiley_tdm --cov-report=xml --cov-report=html
# Build package
build:
python -m build
twine check dist/*
# Run all checks
all: setup clean lint test build