forked from pgq/python-pgq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
59 lines (53 loc) · 1015 Bytes
/
tox.ini
File metadata and controls
59 lines (53 loc) · 1015 Bytes
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
56
57
58
[tox]
envlist = lint,py38
[package]
name = pgq
deps =
psycopg2-binary==2.8.6
skytools==3.7.1
test_deps =
coverage==5.5
pytest==6.2.4
pytest-cov==2.11.1
lint_deps =
pylint==2.8.2
flake8==3.8.3
mypy==0.812
[testenv]
changedir = {envsitepackagesdir}
deps =
{[package]deps}
{[package]test_deps}
passenv =
TEST_Q_NAME
PGPORT
PGHOST
PGUSER
PGDATABASE
commands =
pytest \
--cov=pgq \
--cov-report=term \
--cov-report=xml:{toxinidir}/cover/coverage.xml \
--cov-report=html:{toxinidir}/cover/{envname} \
{toxinidir}/tests \
{posargs}
[testenv:lint]
basepython = python3
changedir = {toxinidir}
deps =
{[package]deps}
{[package]lint_deps}
commands =
pyflakes {[package]name}
mypy {[package]name}
[testenv:xlint]
basepython = python3
changedir = {toxinidir}
deps =
{[package]deps}
{[package]lint_deps}
setenv =
PYLINTRC={toxinidir}/.pylintrc
commands =
pylint {[package]name}