-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
43 lines (40 loc) · 1.17 KB
/
tox.ini
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
[tox]
envlist = flake8,py{27,37,38,39}
package_name = vxcube_api
[flake8]
max-line-length = 120
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
inline-quotes = "
import-order-style = pep8
application-import-names = vxcube_api
exclude =
{[tox]package_name}/version.py,
tests
ignore =
# Missing docstring in public module
D100,
# Missing docstring in public package
D104,
# Missing docstring in __init__
D107,
# TODO: Missing docstring in public class
D101,
# TODO: Missing docstring in public method
D102,
# TODO: Missing docstring in public function
D103,
[testenv]
install_command = pip install {opts} {packages}
deps =
-r{toxinidir}/requirements/requirements.txt
-r{toxinidir}/requirements/requirements-test.txt
commands =
py.test -xv --cov={[tox]package_name} --cov-report=term-missing --cov-config={toxinidir}/.coveragerc tests
[testenv:flake8]
skipsdist = true
skip_install = true
deps =
-r{toxinidir}/requirements/requirements-flake8.txt
commands =
flake8 --version
flake8 -v {toxinidir}/{[tox]package_name} {toxinidir}/tests