tox.ini 938 Bytes
Newer Older
Philippe Pepiot's avatar
Philippe Pepiot committed
1
[tox]
2
envlist=py3,check-manifest,black
Philippe Pepiot's avatar
Philippe Pepiot committed
3
4
5
6
7
8

[testenv]
deps =
  pygments
  pdflatex
  pillow
Laurent Peuch's avatar
Laurent Peuch committed
9
  pytest == 5.4.1
Philippe Pepiot's avatar
Philippe Pepiot committed
10
commands =
Laurent Peuch's avatar
Laurent Peuch committed
11
  {envpython} -m pytest {posargs:{toxinidir}/test}
Philippe Pepiot's avatar
Philippe Pepiot committed
12

13
14
15
16
17
18
19
[testenv:py3-from-forge]
deps =
  pygments
  pdflatex
  pillow
  hg-evolve  # to hide some warnings
commands =
20
  pip install -U hg+https://forge.extranet.logilab.fr/open-source/logilab-common
21
22
  logilab-pytest -t test {posargs}

Philippe Pepiot's avatar
Philippe Pepiot committed
23
24
25
26
27
28
29
[testenv:check-manifest]
skip_install = true
skipsdist = true
deps =
  check-manifest
commands=
  {envpython} -m check_manifest {toxinidir}
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

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

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