forked from someengineering/fixinventory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (34 loc) · 831 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
[tox]
envlist = py38-{black,syntax,tests}
[flake8]
max-line-length=120
exclude =
.git,.tox,__pycache__,.idea,.pytest_cache
application-import-names=cloudkeeper_plugin_example_cli
ignore=F403, F405, E722, N806, N813, E266, W503, E203
[pytest]
addopts= --cov=cloudkeeper_plugin_example_cli -rs -vv
testpaths=
test
[testenv]
install_command = python -m pip install -f /build {opts} {packages}
usedevelop = true
[testenv:py38-syntax]
platform = linux
deps =
flake8
pep8-naming
commands =
flake8 --verbose
[testenv:py38-tests]
platform = linux
deps =
pytest
pytest-cov
commands=
pytest
[testenv:py38-black]
deps =
black
commands =
black --check --diff --line-length 88 --target-version py38 --include '\.pyi?$' --exclude '(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist)' .