-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (44 loc) · 1.22 KB
/
Copy pathMakefile
File metadata and controls
56 lines (44 loc) · 1.22 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
# PullData Development Makefile
.PHONY: help install install-dev test test-cov lint format type-check clean docs
help:
@echo "PullData Development Commands:"
@echo " make install - Install package"
@echo " make install-dev - Install with dev dependencies"
@echo " make test - Run tests"
@echo " make test-cov - Run tests with coverage"
@echo " make lint - Run linter (ruff)"
@echo " make format - Format code (black)"
@echo " make type-check - Run type checker (mypy)"
@echo " make clean - Remove build artifacts"
@echo " make pre-commit - Run all pre-commit checks"
install:
pip install -e .
install-dev:
pip install -e ".[dev]"
pre-commit install
test:
pytest -v
test-cov:
pytest --cov=pulldata --cov-report=term-missing --cov-report=html
lint:
ruff check pulldata/
format:
black pulldata/
ruff check --fix pulldata/
type-check:
mypy pulldata/
clean:
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
pre-commit:
pre-commit run --all-files
docs:
cd docs && make html