-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (40 loc) · 1.35 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
CONFIG=./pyproject.toml
PY_FILES:=$(shell find src/property_utils -not -path '*/tests/*' -not -name '__init__.py' -name '*.py')
install-documentation-builder:
$(PIP) install mkdocs mkdocs-material 'mkdocstrings[python]'
start-documentation-server:
$(INTERPRETER) -m mkdocs serve
deploy-documentation:
$(INTERPRETER) -m mkdocs gh-deploy --config-file mkdocs.yml
install-package-linter:
$(PIP) install pylint
install-package-type-checker:
$(PIP) install mypy
install-package-formatter:
$(PIP) install black
install-package-builder:
$(PIP) install --upgrade build
install-package-uploader:
$(PIP) install --upgrade twine
install-local-package:
$(PIP) install -e .
install-requirements:
$(PIP) install typing-extensions
install-test-requirements:
$(PIP) install unittest-extensions
test-package:
$(INTERPRETER) -m unittest discover -v src/property_utils/tests/
doctest-package:
$(INTERPRETER) -m doctest $(PY_FILES)
lint-package:
$(INTERPRETER) -m pylint --ignore tests --disable C0114,C0301,C0302 src/property_utils
type-check-package:
$(INTERPRETER) -m mypy --config-file $(CONFIG) ./src/property_utils/
format-package:
$(INTERPRETER) -m black --config $(CONFIG) ./src/property_utils/
build-package:
$(INTERPRETER) -m build
upload-package:
$(INTERPRETER) -m twine upload --verbose -u '__token__' dist/*
clean:
rm -rf dist src/property_utils.egg-info