-
Notifications
You must be signed in to change notification settings - Fork 98
/
tox.ini
49 lines (42 loc) · 1.22 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
[pytest]
filterwarnings =
ignore:.*will be deprecated in the next major release. Please use the more general entry-point offered in.*:DeprecationWarning
[tox]
envlist = py38, py310, mypy, pre-commit
[testenv]
deps =
-rrequirements-dev.txt
commands =
python -m pytest --cov --capture=no --benchmark-skip {posargs:tests}
[testenv:benchmark]
basepython = /usr/bin/python3.10
deps =
-rrequirements-dev.txt
commands =
python -m pytest -vv --capture=no {posargs:tests/profiling} \
--benchmark-only --benchmark-min-rounds=15 \
--benchmark-group-by func --benchmark-name short \
--benchmark-save=benchmark --benchmark-save-data \
--benchmark-histogram=.benchmarks/benchmark
[testenv:mypy]
basepython = /usr/bin/python3.10
commands =
mypy bravado_core tests
[testenv:docs]
deps =
sphinx
sphinx-rtd-theme
changedir = docs
commands = sphinx-build -b html -d build/doctrees source build/html
[flake8]
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,docs,virtualenv_run
max_line_length = 130
[testenv:pre-commit]
basepython = /usr/bin/python3.10
deps =
pre-commit>0.12.0
setenv =
LC_CTYPE=en_US.UTF-8
commands =
pre-commit install --install-hooks
pre-commit run --all-files