-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
54 lines (37 loc) · 906 Bytes
/
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
[tox]
minversion=1.8.dev1
envlist =
lint,
mypy,
py36,py37,py38,py39,py310,py311
[testenv]
extras =
testing
cov_args=--cov=dogpile --cov-append --cov-report term --cov-report xml
setenv=
BASECOMMAND=python -m pytest
{generic}: RUNTESTS=-k 'not test_redis_backend not _fixtures'
{redis}: PIFPAF=pifpaf --env-prefix DOGPILE run redis --port {env:TOX_DOGPILE_PORT:6379} --
{redis}: RUNTESTS=tests/cache/test_redis_backend.py
{cov}: COVERAGE={[testenv]cov_args}
deps=
dogpile.cache<1.0
pytest
mock
msgpack-python
redis
{redis}: redis
{redis}: pifpaf
{cov}: pytest-cov
commands=
{env:PIFPAF:} {env:BASECOMMAND} {env:COVERAGE:} {env:RUNTESTS:} {posargs}
sitepackages=True
usedevelop=True
[testenv:pep8]
deps=flake8
commands = python -m flake8 {posargs}
[flake8]
show-source = True
ignore = E711,E712,E721,D,N
# F841,F811,F401
exclude=.venv,.git,.tox,dist,doc,*egg,build