1
0
mirror of https://github.com/ubuntu/microk8s.git synced 2021-05-23 02:23:41 +03:00
Files
microk8s/tox.ini
Konstantinos Tsakalozos b6acffb66f In lxc detect boot from /proc/1 stats (#2270)
* In lxc detect boot from /proc/1 stats

* Fix style checks
2021-05-18 09:11:55 +03:00

39 lines
837 B
INI

[tox]
skipsdist=True
skip_missing_interpreters = True
envlist = lint, unit, func-parallel
[testenv]
basepython = python3
envdir = {toxinidir}/.tox_env
passenv =
MK8S_*
deps =
black ==21.4b2
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,.git"
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