-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
57 lines (39 loc) · 895 Bytes
/
Makefile
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
# -*- coding: utf-8 -*-
.PHONY: clean build bump deploy black blackcheck imports lint typecheck check_no_typing check test tests coverage xmlcov check_ci deps devdeps
clean:
rm -rf __pycache__ build/ dist/ *.egg-info/ .coverage htmlcov
build: clean
python -m build
bump:
./scripts/bump-version.py
deploy: build
./scripts/deploy.sh
black:
isort .
./scripts/blacken.sh
blackcheck:
isort . --check-only
./scripts/blacken.sh --check
imports:
pycln .
isort .
lint:
ruff check
typecheck:
mypy pyccolo
check_no_typing:
rm -f .coverage
rm -rf htmlcov
PYCCOLO_DEV_MODE=1 pytest --cov-config=pyproject.toml --cov=pyccolo
check: blackcheck lint typecheck check_no_typing
test: check
tests: check
coverage: check_no_typing
coverage html
xmlcov: check_no_typing
coverage xml
check_ci: typecheck xmlcov
deps:
pip install -r requirements.txt
devdeps:
pip install -e .[dev]