-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
32 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
test_deps: | ||
pip install coverage flake8 wheel mypy types-certifi types-pyOpenSSL lxml-stubs | ||
SHELL=/bin/bash | ||
|
||
lint: test_deps | ||
flake8 $$(python setup.py --name) test | ||
mypy $$(python setup.py --name) --check-untyped-defs | ||
lint: | ||
flake8 | ||
mypy --install-types --non-interactive --check-untyped-defs $$(dirname */__init__.py) | ||
|
||
test: test_deps lint | ||
coverage run --source=$$(python setup.py --name) ./test/test.py | ||
test: | ||
python ./test/test.py -v | ||
|
||
init_docs: | ||
cd docs; sphinx-quickstart | ||
|
||
docs: | ||
sphinx-build docs docs/html | ||
|
||
install: clean | ||
pip install wheel | ||
python setup.py bdist_wheel | ||
pip install --upgrade dist/*.whl | ||
install: | ||
-rm -rf dist | ||
python -m pip install build | ||
python -m build | ||
python -m pip install --upgrade $$(echo dist/*.whl)[tests] | ||
|
||
clean: | ||
-rm -rf build dist | ||
-rm -rf *.egg-info | ||
|
||
.PHONY: lint test test_deps docs install clean | ||
.PHONY: test lint release docs | ||
|
||
include common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[bdist_wheel] | ||
universal=1 | ||
[flake8] | ||
max-line-length=120 | ||
extend-ignore=E203 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters