-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
55 lines (52 loc) · 1.2 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
[tox]
skipsdist = true
envlist = py27, py36, test-coverage
; Fix for /~https://github.com/tox-dev/tox/issues/310
minversion = 2.5.0
[testenv]
basepython = python3.6
usedevelop = true
extras = all
passenv =
; We need to be able to link OpenSSL on macOS Sierra
CFLAGS
LDFLAGS
; Pass the Travis CI environment variables for codecov reports
CI
TRAVIS
TRAVIS_*
; Allow turning on deprecation warnings and other warnings
PYTHONWARNINGS
deps =
pytest >= 3.0.0, < 4.0
pytest-cov
pytest-mock
pytest-randomly
pyramid
hypothesis >= 3.14.0, < 4.0
pretend >= 1.0.8, < 2.0
commands =
pytest {posargs: --cov --cov-report=html}
[testenv:test-coverage]
usedevelop = false
deps =
coverage
commands =
coverage combine
coverage report --skip-covered -m --fail-under=100 --include="tests/*"
[testenv:style]
usedevelop = false
setenv =
; /~https://github.com/timothycrosley/isort/issues/472
PYTHONHASHSEED=0
deps =
flake8 >= 3.0.4
flake8-docstrings
flake8-comprehensions
flake8-bugbear
isort >= 4.2.14
commands =
; Check style violations
flake8
; Check that imports are sorted/formatted appropriately
isort --check-only --recursive