-
Notifications
You must be signed in to change notification settings - Fork 250
/
tox.ini
74 lines (69 loc) · 3.19 KB
/
tox.ini
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tox]
envlist =
py{27,35,36,37,38,39}-unit
py39-bandit
py39-lint
py39-setup
py39-docs
[constants]
unit-base-command = py.test --quiet --cov={envdir}/opencensus --cov=context --cov=contrib --cov-report term-missing --cov-config=.coveragerc --cov-fail-under=90 --ignore=contrib/opencensus-ext-datadog tests/unit/ context/ contrib/
[testenv]
install_command = python -m pip install {opts} {packages}
deps =
unit,lint: mock==3.0.5
unit,lint: pytest==4.6.4
unit,lint: pytest-cov
unit,lint: retrying
unit,lint: unittest2
py27-unit: markupsafe==1.1.1
py35-unit: markupsafe==1.1.1
py3{6,7,8,9}-unit: markupsafe==2.0.1 # https://github.com/pallets/markupsafe/issues/282
bandit: bandit
unit,lint,setup,docs,bandit: -e context/opencensus-context
unit,lint,docs,bandit: -e contrib/opencensus-correlation
unit,lint,docs,bandit: protobuf==3.17.3 # https://github.com/protocolbuffers/protobuf/issues/8984
unit,lint,docs,bandit: -e .
unit,lint,bandit: -e contrib/opencensus-ext-azure
; unit,lint: -e contrib/opencensus-ext-datadog
unit,lint,bandit: -e contrib/opencensus-ext-dbapi
unit,lint,bandit: -e contrib/opencensus-ext-django
py3{6,7,8,9}-unit,lint,bandit: -e contrib/opencensus-ext-fastapi
unit,lint,bandit: -e contrib/opencensus-ext-flask
unit,lint,bandit: -e contrib/opencensus-ext-gevent
unit,lint,bandit: -e contrib/opencensus-ext-grpc
unit,lint,bandit: -e contrib/opencensus-ext-httplib
unit,lint,bandit: -e contrib/opencensus-ext-jaeger
unit,lint,bandit: -e contrib/opencensus-ext-logging
unit,lint,bandit: -e contrib/opencensus-ext-mysql
unit,lint,bandit: -e contrib/opencensus-ext-ocagent
unit,lint,bandit: -e contrib/opencensus-ext-postgresql
py{36,37,38,39}-unit,lint,bandit: prometheus-client==0.13.1
unit,lint,bandit: -e contrib/opencensus-ext-prometheus
unit,lint,bandit: -e contrib/opencensus-ext-pymongo
unit,lint,bandit: -e contrib/opencensus-ext-pymysql
unit,lint,bandit: -e contrib/opencensus-ext-pyramid
unit,lint,bandit: -e contrib/opencensus-ext-requests
py3{7,8,9}-unit,lint,bandit: -e contrib/opencensus-ext-httpx
unit,lint,bandit: -e contrib/opencensus-ext-sqlalchemy
py3{6,7,8,9}-unit,lint,bandit: -e contrib/opencensus-ext-stackdriver
unit,lint,bandit: -e contrib/opencensus-ext-threading
unit,lint,bandit: -e contrib/opencensus-ext-zipkin
unit,lint,bandit: -e contrib/opencensus-ext-google-cloud-clientlibs
lint: flake8 ~= 4.0.1
lint: isort ~= 4.3.21
setup: docutils
setup: pygments
docs: setuptools >= 36.4.0
docs: sphinx >= 1.6.3
commands =
py{27,34,35}-unit: {[constants]unit-base-command} --ignore=contrib/opencensus-ext-stackdriver --ignore=contrib/opencensus-ext-flask --ignore=contrib/opencensus-ext-httpx --ignore=contrib/opencensus-ext-fastapi
py36-unit: {[constants]unit-base-command} --ignore=contrib/opencensus-ext-httpx
py3{7,8,9}-unit: {[constants]unit-base-command}
; TODO system tests
lint: isort --check-only --diff --recursive .
lint: flake8 context/ contrib/ opencensus/ tests/ examples/
; lint: - bash ./scripts/pylint.sh
bandit: bandit -r context/ contrib/ opencensus/ -lll -q
py39-setup: python setup.py check --restructuredtext --strict
py39-docs: bash ./scripts/update_docs.sh
; TODO deployment