forked from Uberi/speech_recognition
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (17 loc) · 665 Bytes
/
Makefile
File metadata and controls
22 lines (17 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: lint rstcheck typecheck distribute publish
lint:
# ignore errors for long lines and multi-statement lines
@pipx run flake8 --ignore=E501,E701,W503 --extend-exclude .venv,venv,build --doctests .
rstcheck:
# PyPI does not support Sphinx directives and roles
@pipx run rstcheck README.rst
@pipx run rstcheck[sphinx] --ignore-directives autofunction reference/*.rst
typecheck:
@mypy --ignore-missing-imports speech_recognition/recognizers tests
distribute:
@pipx run build
@pipx run twine check dist/*
publish:
# Set PYPI_API_TOKEN before `make publish`
@test -n "${PYPI_API_TOKEN}"
@pipx run twine upload -u __token__ -p ${PYPI_API_TOKEN} dist/*