forked from rezabojnordi/prometheus-openstack-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (53 loc) · 896 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
47
48
49
50
51
52
53
54
55
56
57
58
[tox]
skipsdist=True
skip_missing_interpreters = True
envlist = lint
[testenv]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/lib/:{toxinidir}/hooks/
passenv =
HOME
PATH
CHARM_BUILD_DIR
PYTEST_KEEP_MODEL
PYTEST_CLOUD_NAME
PYTEST_CLOUD_REGION
PYTEST_MODEL
MODEL_SETTINGS
HTTP_PROXY
HTTPS_PROXY
NO_PROXY
SNAP_HTTP_PROXY
SNAP_HTTPS_PROXY
[testenv:lint]
commands =
flake8
black --check prometheus-openstack-exporter
black --check tests
black --check setup.py
deps =
black
flake8
flake8-docstrings
flake8-import-order
pep8-naming
flake8-colors
[flake8]
exclude =
.git,
__pycache__,
.tox,
charmhelpers,
mod,
.build,
.venv
max-line-length = 88
max-complexity = 10
[testenv:black]
commands =
black prometheus-openstack-exporter
black tests
black setup.py
deps =
black