forked from turner-townsend/flask-pydantic-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 659 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
29
30
31
32
33
34
35
check: style test
install:
pip install -e .
test:
pytest tests -vv
doc:
cd docs && make html
clean:
rm -rf build/ dist/ *.egg-info .pytest_cache
find . -name '*.pyc' -type f -exec rm -rf {} +
find . -name '__pycache__' -exec rm -rf {} +
build: clean
python setup.py sdist bdist_wheel
publish: build
twine upload dist/*
style:
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings
flake8 . --count --exit-zero --statistics
lint:
mypy flask_pydantic_spec
format:
black tests flask_pydantic_spec
.PHONY: test doc