tox.ini 1.02 KB
Newer Older
Denis Laxalde's avatar
Denis Laxalde committed
1
[tox]
Laurent Peuch's avatar
Laurent Peuch committed
2
envlist=py3,check-manifest,mypy,flake8,black,black-run
Denis Laxalde's avatar
Denis Laxalde committed
3
4
5
6

[testenv]
deps =
  pytz
7
  pytest == 5.4.1
8
  git+https://github.com/Psycojoker/pytest-capture-deprecatedwarnings
9
commands=
Laurent Peuch's avatar
Laurent Peuch committed
10
  {envpython} -m pytest test {posargs}
Denis Laxalde's avatar
Denis Laxalde committed
11
12
13
14
15
16
17

[testenv:docs]
basepython = python2
deps =
  -r docs/requirements-doc.txt
commands=
  {envpython} -m sphinx -b html {toxinidir}/docs {toxinidir}/docs/_build/html {posargs}
18

Laurent Peuch's avatar
Laurent Peuch committed
19
20
21
22
23
24
25
[testenv:check-manifest]
skip_install = true
deps =
  check-manifest
commands =
  {envpython} -m check_manifest {toxinidir}

26
27
28
29
[testenv:mypy]
deps =
  mypy >= 0.761
commands = mypy --ignore-missing-imports logilab
30
31
32
33
34
35
36
37
38
39
40
41
42
43

[testenv:black]
basepython = python3
skip_install = true
deps =
  black >= 19.10b0
commands = black --check .

[testenv:black-run]
basepython = python3
skip_install = true
deps =
  black >= 19.10b0
commands = black .
44
45
46
47
48
49
50
51
52
53
54
55
56

[testenv:flake8]
skip_install = true
deps =
  flake8 >= 3.6
commands = flake8

[flake8]
basepython = python3
format = pylint
ignore = W503, E203, E731, E231
max-line-length = 100
exclude = docs/*,.tox/*,./test/data/*