-
Notifications
You must be signed in to change notification settings - Fork 64
/
Makefile
27 lines (27 loc) · 775 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
# SPDX-License-Identifier: WTFPL
# Based on code from https://github.com/bachya/simplisafe-python/blob/dev/Makefile
black:
pipenv run black teslajsonpy
coverage:
pipenv run pytest -s --verbose --cov-report term-missing --cov-report xml --cov=teslajsonpy tests
clean:
rm -rf dist/ build/ .egg teslajsonpy.egg-info/
init:
pip3 install --upgrade pip pipenv
pipenv lock
pipenv install --three --dev
lint: flake8 docstyle pylint
flake8:
pipenv run flake8 teslajsonpy
docstyle:
pipenv run pydocstyle teslajsonpy
pylint:
pipenv run pylint teslajsonpy
publish:
pipenv run python setup.py sdist bdist_wheel
pipenv run twine upload dist/*
rm -rf dist/ build/ .egg teslajsonpy.egg-info/
test:
pipenv run pytest
typing:
pipenv run mypy --ignore-missing-imports teslajsonpy