forked from canonical/microk8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (33 loc) · 823 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
[tox]
skipsdist=True
skip_missing_interpreters = True
envlist = lint, unit, func-parallel
[testenv]
basepython = python3
envdir = {toxinidir}/.tox_env
passenv =
MK8S_*
deps =
black
flake8
flake8-colors
pep8-naming
codespell
-r{toxinidir}/tests/requirements.txt
[testenv:lint]
commands =
-flake8
codespell --ignore-words-list="aks" --quiet-level=2 --skip="*.patch,*.spec,.tox_env"
black --diff --check --exclude "/(\.eggs|\.git|\.tox|\.venv|\.build|dist|charmhelpers|mod)/" .
[testenv:func]
commands = pytest -v --ignore {toxinidir}/installer {posargs}
[testenv:func-parallel]
commands = pytest -v --ignore {toxinidir}/installer --dist=loadscope {posargs:-n 2}
[flake8]
exclude =
.git,
__pycache__,
.tox,
.tox_env,
max-complexity = 10
import-order-style = google