Add common files (#19)
This commit is contained in:
parent
0eb2cac7b8
commit
72b40ba5f9
|
|
@ -0,0 +1,10 @@
|
||||||
|
pylint~=2.3
|
||||||
|
flake8~=3.7
|
||||||
|
isort~=4.3
|
||||||
|
black>=19.3b0,==19.*
|
||||||
|
mypy==0.740
|
||||||
|
sphinx~=2.1
|
||||||
|
sphinx-rtd-theme~=0.4
|
||||||
|
sphinx-autodoc-typehints~=1.10.2
|
||||||
|
pytest!=5.2.3
|
||||||
|
pytest-cov>=2.8
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
[pytest]
|
||||||
|
addopts = -rs -v
|
||||||
|
log_cli = true
|
||||||
|
log_cli_level = warning
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
[tox]
|
||||||
|
skipsdist = True
|
||||||
|
skip_missing_interpreters = True
|
||||||
|
envlist =
|
||||||
|
; Environments are organized by individual package, allowing
|
||||||
|
; for specifying supported Python versions per package.
|
||||||
|
|
||||||
|
py3{4,5,6,7,8}-test-flask
|
||||||
|
pypy3-test-flask
|
||||||
|
|
||||||
|
py3{4,5,6,7,8}-test-django
|
||||||
|
pypy3-test-django
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
deps =
|
||||||
|
-c dev-requirements.txt
|
||||||
|
test: pytest
|
||||||
|
; FIXME: add coverage testing
|
||||||
|
; FIXME: add mypy testing
|
||||||
|
; FIXME: add lint testing
|
||||||
|
; FIXME: add travis configuration
|
||||||
|
|
||||||
|
changedir =
|
||||||
|
flask: flask/tests
|
||||||
|
django: django/tests
|
||||||
|
|
||||||
|
commands_pre =
|
||||||
|
; Install without -e to test the actual installation
|
||||||
|
python -m pip install -U pip setuptools wheel
|
||||||
|
; test: pip install {toxinidir}/flask
|
||||||
|
test: pip install {toxinidir}/utils/opentelemetry-auto-instrumentation
|
||||||
|
test: pip install {toxinidir}/utils/opentelemetry-ext-testutil
|
||||||
|
|
||||||
|
flask: pip install {toxinidir}/flask
|
||||||
|
flask: pip install {toxinidir}/flask[test]
|
||||||
|
|
||||||
|
django: pip install {toxinidir}/django
|
||||||
|
django: pip install {toxinidir}/django[test]
|
||||||
|
|
||||||
|
commands =
|
||||||
|
test: pytest {posargs}
|
||||||
Loading…
Reference in New Issue