summaryrefslogtreecommitdiffstats
path: root/qa/tox.ini
blob: 5b2149c4989bf89cc68e9fa8b1116ce9b088cf01 (plain)
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
[tox]
envlist = flake8, mypy, pytest, deadsymlinks
skipsdist = True

[testenv]
setenv =
  LC_ALL = C.UTF-8
  LANG = C

[testenv:flake8]
basepython = python3
deps=
  flake8
commands=flake8 --select=F,E9 --exclude=venv,.tox

[testenv:mypy]
basepython = python3
deps =
  mypy
  types-boto
  types-requests
  types-jwt
  types-paramiko
  types-PyYAML
  types-cryptography
  types-python-dateutil
  -c{toxinidir}/../src/mypy-constrains.txt
commands = mypy {posargs:.}

[testenv:py3]
basepython = python3
deps =
  {env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@main}#egg=teuthology[coverage,orchestra,test]
  httplib2
  pytest
commands =
  pytest --assert=plain test_import.py
  pytest tasks/tests --suite-dir {toxinidir}/suites {posargs}

[testenv:deadsymlinks]
basepython = python3
toxworkdir = {toxinidir}
allowlist_externals = 
  bash
commands =
  bash -c '! (find . -xtype l | grep ^)'