-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 993 Bytes
/
Makefile
File metadata and controls
44 lines (35 loc) · 993 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
# dextra - Data Extraction package for InvOCR
# Development and deployment automation
.PHONY: help install test lint format build clean publish
# Default target
help:
@echo "dextra Development Commands"
@echo "=========================="
@echo "install - Install dependencies"
@echo "test - Run tests"
@echo "lint - Run linting"
@echo "format - Format code"
@echo "build - Build package"
@echo "clean - Clean build artifacts"
@echo "publish - Publish package to PyPI"
install:
poetry install
poetry run pre-commit install
test:
poetry run pytest --cov=dextra --cov-report=html
lint:
poetry run flake8 dextra/
poetry run mypy dextra/
format:
poetry run black dextra/ tests/
poetry run isort dextra/ tests/
build:
poetry build
clean:
rm -rf dist/ build/ *.egg-info/
rm -rf .coverage htmlcov/
rm -rf .pytest_cache/
find . -type d -name __pycache__ -delete
find . -type f -name "*.pyc" -delete
publish:
poetry publish --build