forked from zabuldon/teslajsonpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (28 loc) · 866 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
# SPDX-License-Identifier: WTFPL
# Based on code from https://github.com/bachya/simplisafe-python/blob/dev/Makefile
black:
poetry run black teslajsonpy
coverage:
poetry run pytest -s --verbose --cov-report term-missing --cov-report xml --cov=teslajsonpy tests -Wi -Wd:::teslajsonpy
clean:
rm -rf dist/ build/ .egg teslajsonpy.egg-info/
init:
pip3 install --upgrade pip poetry
poetry lock
poetry install
lint: flake8 docstyle pylint
flake8:
poetry run flake8 teslajsonpy
docstyle:
poetry run pydocstyle teslajsonpy
pylint:
poetry run pylint teslajsonpy
publish:
poetry publish
test:
poetry run pytest -s --verbose tests -Wi -Wd:::teslajsonpy
typing:
poetry run mypy --ignore-missing-imports teslajsonpy
docs: docstyle
poetry export --dev --without-hashes -f requirements.txt --output docs/requirements.txt
poetry run sphinx-build -b html docs docs/html