-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
61 lines (51 loc) · 1.42 KB
/
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
57
58
59
60
61
SHELL := /usr/bin/env bash
.PHONY: all
# Currently running typeguard on all modules except:
# - phantom.interval
# - phantom._base
# - phantom.ext.phonenumbers
typeguard_packages := \
phantom.boolean \
phantom.datetime \
phantom.fn \
phantom.iso3166 \
phantom.re \
phantom.schema \
phantom.sized \
phantom.utils \
phantom.predicates._base \
phantom.predicates.boolean \
phantom.predicates.collection \
phantom.predicates.datetime \
phantom.prediactes.generic \
phantom.predicates.interval \
phantom.predicates.numeric \
phantom.predicates.re \
phantom.predicates.utils
typeguard_arg := \
--typeguard-packages=$(shell echo $(typeguard_packages) | sed 's/ /,/g')
.PHONY: test
test:
pytest $(test)
.PHONY: test-runtime
test-runtime:
pytest $(test) -k.py
.PHONY: test-typeguard
test-typeguard:
pytest $(typeguard_arg) $(test)
.PHONY: test-typing
test-typing:
pytest $(test) -k.yaml
.PHONY: clean
clean:
rm -rf {**/,}*.egg-info **{/**,}/__pycache__ build dist .coverage coverage.xml
.PHONY: docs-requirements
docs-requirements: export CUSTOM_COMPILE_COMMAND='make docs-requirements'
docs-requirements:
@pip install --upgrade pip-tools
@pip-compile --output-file=docs-requirements.txt --extra=docs
.PHONY: docs-requirements
typing-requirements: export CUSTOM_COMPILE_COMMAND='make typing-requirements'
typing-requirements:
@pip install --upgrade pip-tools
@pip-compile --output-file=typing-requirements.txt --extra=type-check