-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (38 loc) · 1.16 KB
/
Copy pathMakefile
File metadata and controls
38 lines (38 loc) · 1.16 KB
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
# SPDX-License-Identifier: Apache-2.0
# Based on code from https://github.com/bachya/simplisafe-python/blob/dev/Makefile
coverage:
#Not implemented yet
#poetry run py.test -s --verbose --cov-report term-missing --cov-report xml --cov=alexapy tests
bump:
poetry run semantic-release release
poetry run semantic-release changelog
bump_and_publish:
poetry run semantic-release publish
check_vulns:
poetry run safety check
clean:
rm -rf dist/ build/ .egg alexapy.egg-info/
init: setup_env
poetry install --with dev
lint: ruff docstyle typing
ruff:
poetry run ruff check alexapy
docstyle:
poetry run pydocstyle alexapy
docs: docstyle
poetry run pip freeze > docs/requirements.txt
echo "alexapy" >> docs/requirements.txt
poetry run sphinx-build -b html docs docs/html
# publish:
# deprecated by semantic-release
# poetry run python setup.py sdist bdist_wheel
# poetry run twine upload dist/*
# rm -rf dist/ build/ .egg alexapy.egg-info/
setup_env:
pip install poetry
test:
poetry run pytest -vv -s --durations=20 -o faulthandler_timeout=60 \
tests/test_get_notifications_refactor.py \
tests/test_get_wake_words.py
typing:
poetry run mypy --ignore-missing-imports alexapy