summaryrefslogtreecommitdiffstats
path: root/src/python-common/tox.ini
blob: 5869b6ae27643dee38f76cc22eea64fcab525bee (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
[tox]
envlist = py3, lint
skip_missing_interpreters = true

[testenv:py3]
deps=
    -rrequirements.txt
commands=
    pytest --doctest-modules ceph/deployment/service_spec.py ceph/utils.py
    pytest {posargs}
    mypy --config-file=../mypy.ini -p ceph

[tool:pytest]
norecursedirs = .* _* virtualenv

[flake8]
max-line-length = 100
exclude =
    __pycache__

[testenv:lint]
deps = 
    -rrequirements-lint.txt
commands =
    flake8 {posargs:ceph}
    rstcheck --report info --debug README.rst