-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathtox.ini
48 lines (45 loc) · 1.02 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
[tox]
requires = virtualenv<20.22.0
envlist =
flake8
py{27,36,37,38,39,310,311,312}
[testenv:flake8]
deps = flake8
commands = flake8 {toxinidir}/pganonymize {toxinidir}/tests
[testenv]
skip_install = True
setenv =
PYTHONPATH = {toxinidir}
deps =
# faker
py27: faker<4
py{36,37,38,39,310,311,312}: faker>=9.9.0
# parmap
py27: parmap==1.5.2
py{36,37,38,39,310,311,312}: parmap>=1.5.2
# pyyaml
py27: pyyaml<6
py{36,37,38,39,310,311,312}: pyyaml>=6
# pytest
py27: pytest==4.0.2
py27: attrs<19.2
py27: more-itertools<8.11
py{36,37}: pytest==6.2.5
py{38,39,310,311,312}: pytest
# pgcopy
py27: pgcopy==1.5.0
py{36,37,38,39,310,311,312}: pgcopy
# psycopg2
py27: psycopg2
py{36,37,38,39,310,311,312}: psycopg2>=2.9.2
# Common requirements
-r{toxinidir}/requirements-tox.txt
commands =
py.test --basetemp={envtmpdir} {posargs}
passenv =
TOXENV
GITHUB_*
[flake8]
exclude = docs,.tox,.git,.eggs
max-line-length = 120
ignore = E731,W504