-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
41 lines (35 loc) · 992 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
[tox]
envlist = py37,py38,py39,py310,py311,pypy,pypy3,pep8,pep257,coverage, flake8
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = -r{toxinidir}/requirements-tests.txt
setenv = VIRTUAL_ENV = {envdir}
# note: we test doctests to be sure that all examples are valid
# but they are not run later in coverage because they are only illustratory
commands = pytest --doctest-modules --ignore=setup.py --ignore docs {posargs}
sitepackages = False
[testenv:pep8]
deps = flake8==2.0
commands = flake8 {posargs}
[testenv:pep257]
basepython=python3.7
deps =
pydocstyle==1.0.0
commands = pydocstyle src tests {posargs}
[testenv:flake8]
deps=
flake8
commands=
flake8 src tests
[flake8]
builtins = _
exclude=.git,.tox,dist,doc,*lib/python*,*egg,.idea,docs
show-source = True
[testenv:coverage]
deps = coverage
coveralls
{[testenv]deps}
usedevelop = True
commands = coverage run --source solrq -m pytest {posargs}
coverage report
coveralls