-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (45 loc) · 1.16 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
44
45
46
47
48
49
50
51
[tox]
minversion = 3.1.1
envlist = mypy,test,pep8
[testenv]
basepython = python3
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
PYTHONDONTWRITEBYTECODE=1
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
passenv =
OS_DEBUG GENERATE_HASHES
envdir = {toxworkdir}/shared
commands =
stestr run {posargs}
[testenv:test]
description =
Test the plugin
commands =
stestr --test-path ./ovo_mypy_plugin run {posargs}
[testenv:pep8]
# run black in check mode and fail if it would change something
commands =
black --line-length 79 --check --diff ./ovo_mypy_plugin
black --line-length 79 --check --diff ./ovo_stub
flake8 {posargs}
[testenv:black]
commands =
black --line-length 79 ./ovo_mypy_plugin
black --line-length 79 ./ovo_stub
[testenv:mypy]
description =
Typechecking the plugin code itself
commands =
mypy ovo_mypy_plugin
mypy ovo_stub
[flake8]
show-source = True
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build