-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
46 lines (41 loc) · 952 Bytes
/
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
44
45
46
[tox]
minversion = 4.3.0
envlist = pep8,py3
ignore_basepython_conflict = true
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = stestr run {posargs}
allowlist_externals =
stestr
flake8
[testenv:pep8]
description =
Run style checks.
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:venv]
description =
Run specified command in a virtual environment with all dependencies installed.
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,W503
max-line-length = 80
import-order-style = google
builtins = _
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
allowlist_externals =
flake8
[stestr]
test_path = ./tests