-
Notifications
You must be signed in to change notification settings - Fork 66
/
tox.ini
52 lines (44 loc) · 1.1 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
[tox]
envlist = py, flake8, docs
minversion = 2.4.0
[testenv]
extras = tests
passenv = *
# setenv = PYTHONMALLOC = pymalloc
# PYTHONMALLOCSTATS = 'yes'
usedevelop = True
commands =
pytest --cov=lz4/block --cov=lz4/frame --tb=long {posargs} tests/block tests/frame
[pytest]
addopts = -x --tb=long --showlocals
[testenv:flake8]
extras = flake8
passenv = *
commands =
flake8 lz4 setup.py tests
[flake8]
ignore = E501
[testenv:docs]
package_env = .pkg-experimental
passenv = *
usedevelop = True
allowlist_externals = make
extras = docs
commands =
make -C docs doctest html
[testenv:.pkg-experimental]
# This environment is used when building the lz4 package (wheel) that
# is subsequently installed into the tox environment for any
# environment referencing this one via package_env.
# https://tox.wiki/en/latest/config.html#package_env-env
setenv =
PYLZ4_EXPERIMENTAL = 1
[testenv:experimental]
extras = tests
passenv = *
package_env = .pkg-experimental
# PYTHONMALLOC = pymalloc
# PYTHONMALLOCSTATS = 'yes'
usedevelop = True
commands =
pytest --cov=lz4/stream --tb=long {posargs} tests/stream