Skip to content

Commit

Permalink
Add common files (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl authored Apr 6, 2020
1 parent 0eb2cac commit 72b40ba
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
10 changes: 10 additions & 0 deletions instrumentors/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions instrumentors/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[pytest]
addopts = -rs -v
log_cli = true
log_cli_level = warning
41 changes: 41 additions & 0 deletions instrumentors/tox.ini
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 72b40ba

Please sign in to comment.