tox.ini 1.15 KB
Newer Older
Philippe Pepiot's avatar
Philippe Pepiot committed
1
[tox]
2
envlist=py3,check-manifest,black,mypy
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
10
  git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings
Philippe Pepiot's avatar
Philippe Pepiot committed
11
commands =
Nsukami Patrick's avatar
Nsukami Patrick committed
12
  {envpython} -m pytest {posargs}
Philippe Pepiot's avatar
Philippe Pepiot committed
13

14
15
16
17
18
19
[testenv:py3-from-forge]
deps =
  pygments
  pdflatex
  pillow
  hg-evolve  # to hide some warnings
Nsukami Patrick's avatar
Nsukami Patrick committed
20
  pytest == 5.4.1
21
commands =
22
  pip install -U hg+https://forge.extranet.logilab.fr/open-source/logilab-common
Laurent Peuch's avatar
Laurent Peuch committed
23
  {envpython} -m pytest {posargs}
24

Philippe Pepiot's avatar
Philippe Pepiot committed
25
26
27
28
29
30
[testenv:check-manifest]
skip_install = true
skipsdist = true
deps =
  check-manifest
commands=
Nsukami Patrick's avatar
Nsukami Patrick committed
31
  {envpython} -m check_manifest {posargs} {toxinidir}
32
33
34
35
36
37
38
39
40
41
42
43
44
45

[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 .
46
47
48
49
50
51
52
53
54
55
56
57

[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/*
58

Nsukami Patrick's avatar
Nsukami Patrick committed
59
60
61
62
63
[pytest]
python_files = *test_*.py
testpaths = test
addopts = -r fEs

64
65
66
[testenv:mypy]
deps =
  mypy >= 0.761
Nsukami Patrick's avatar
Nsukami Patrick committed
67
commands = mypy {posargs} logilab/mtconverter/