]>
Commit | Line | Data |
---|---|---|
9f95a23c | 1 | [tox] |
b3b6e05e TL |
2 | envlist = |
3 | py3 | |
4 | mypy | |
5 | fix | |
6 | flake8 | |
7 | skipsdist = true | |
8 | requires = cython | |
9f95a23c | 9 | |
f67539c2 TL |
10 | [flake8] |
11 | max-line-length = 100 | |
12 | inline-quotes = ' | |
13 | ignore = | |
14 | E501, | |
15 | W503, | |
16 | exclude = | |
17 | .tox, | |
18 | .vagrant, | |
19 | __pycache__, | |
20 | *.pyc, | |
21 | templates, | |
22 | .eggs | |
23 | statistics = True | |
24 | ||
b3b6e05e TL |
25 | [autopep8] |
26 | addopts = | |
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 |
35 | skip_install=true |
36 | deps = | |
b3b6e05e | 37 | pyfakefs |
9f95a23c | 38 | mock |
b3b6e05e | 39 | pytest |
9f95a23c TL |
40 | commands=pytest {posargs} |
41 | ||
42 | [testenv:mypy] | |
43 | basepython = python3 | |
f67539c2 | 44 | deps = mypy==0.790 |
f6b5b4d7 | 45 | commands = mypy --config-file ../mypy.ini {posargs:cephadm} |
f67539c2 | 46 | |
b3b6e05e TL |
47 | [testenv:fix] |
48 | basepython = python3 | |
49 | deps = | |
50 | autopep8 | |
51 | commands = | |
52 | python --version | |
53 | autopep8 {[autopep8]addopts} {posargs: cephadm} | |
54 | ||
f67539c2 TL |
55 | [testenv:flake8] |
56 | basepython = python3 | |
57 | deps = | |
58 | flake8 | |
59 | flake8-quotes | |
60 | commands = | |
61 | flake8 --config=tox.ini {posargs:cephadm} |