-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 1.12 KB
/
Copy pathMakefile
File metadata and controls
47 lines (38 loc) · 1.12 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
.PHONY: help install install-dev test test-cov lint format clean
help:
@echo "Fuzzygrep Development Commands"
@echo "==============================="
@echo ""
@echo "install Install package"
@echo "install-dev Install with development dependencies"
@echo "test Run tests"
@echo "test-cov Run tests with coverage"
@echo "lint Run linters (flake8, mypy)"
@echo "format Format code (black, isort)"
@echo "clean Clean build artifacts"
@echo "run-example Run example with sample data"
install:
pip install -e .
install-dev:
pip install -e ".[dev,enhanced]"
test:
pytest
test-cov:
pytest --cov=fuzzygrep --cov-report=html --cov-report=term
lint:
flake8 fuzzygrep --max-line-length=100 --ignore=E203,W503
mypy fuzzygrep --ignore-missing-imports
format:
black fuzzygrep tests
isort fuzzygrep tests
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf htmlcov/
rm -rf .pytest_cache/
rm -rf .mypy_cache/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
run-example:
python fuzzygrep_cmd.py people-1000.csv