-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
58 lines (50 loc) · 1.28 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
52
53
54
55
56
57
58
[tox]
envlist =
pep8,py38
; isolated_build = true
; no_package = true
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
PYTHONDONTWRITEBYTECODE=1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
PYTHONUNBUFFERED=1
SQLALCHEMY_WARN_20=true
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/xena}
.[balena,dev]
commands =
pytest {posargs}
# command to set up development environment
# tested with vscode
[testenv:dev]
# install venv outside of .tox for discovery by vscode
env_dir = {tox_root}/.venv
# python version to use
basepython = py38
# install in editable mode
package = editable
# don't build sdist
no_package = true
[testenv:genconfig]
commands =
oslo-config-generator --config-file=tools/config/doni-config-generator.conf
[testenv:genpolicy]
commands =
oslopolicy-sample-generator --config-file=tools/policy/doni-policy-generator.conf
[testenv:pep8]
usedevelop = False
description =
Run style checks.
deps =
black
isort
hacking
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/xena}
commands =
flake8 {posargs} doni
isort --check-only --diff doni
black --check --diff --color doni
[flake8]
max-line-length = 88