]> git.proxmox.com Git - ceph.git/blame - ceph/src/cephadm/tox.ini
import ceph pacific 16.2.5
[ceph.git] / ceph / src / cephadm / tox.ini
CommitLineData
9f95a23c 1[tox]
b3b6e05e
TL
2envlist =
3 py3
4 mypy
5 fix
6 flake8
7skipsdist = true
8requires = cython
9f95a23c 9
f67539c2
TL
10[flake8]
11max-line-length = 100
12inline-quotes = '
13ignore =
14 E501,
15 W503,
16exclude =
17 .tox,
18 .vagrant,
19 __pycache__,
20 *.pyc,
21 templates,
22 .eggs
23statistics = True
24
b3b6e05e
TL
25[autopep8]
26addopts =
27 --max-line-length {[flake8]max-line-length}
28 --ignore "{[flake8]ignore}"
29 --exclude "{[flake8]exclude}"
30 --in-place
31 --recursive
32 --ignore-local-config
33
9f95a23c 34[testenv]
9f95a23c
TL
35skip_install=true
36deps =
b3b6e05e 37 pyfakefs
9f95a23c 38 mock
b3b6e05e 39 pytest
9f95a23c
TL
40commands=pytest {posargs}
41
42[testenv:mypy]
43basepython = python3
f67539c2 44deps = mypy==0.790
f6b5b4d7 45commands = mypy --config-file ../mypy.ini {posargs:cephadm}
f67539c2 46
b3b6e05e
TL
47[testenv:fix]
48basepython = python3
49deps =
50 autopep8
51commands =
52 python --version
53 autopep8 {[autopep8]addopts} {posargs: cephadm}
54
f67539c2
TL
55[testenv:flake8]
56basepython = python3
57deps =
58 flake8
59 flake8-quotes
60commands =
61 flake8 --config=tox.ini {posargs:cephadm}