-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
94 lines (81 loc) · 2.11 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[tox]
minversion = 3.6
envlist =
linting
cov-init
py{36,37}-{azure,browser,probes}
cov-report
docs
isolated_build = true
skip_missing_interpreters = true
ignore_errors = false
[tox:.package]
basepython = python3
[testenv]
passenv = USER USERNAME COVERAGE_* TRAVIS PYTEST_ADDOPTS
whitelist_externals = poetry
commands =
azure: poetry install -v --no-dev --extras=keyvault
poetry install -v --no-dev --extras=test
pytest {env:_PYTEST_TOX_ARGS:} {env:_PYTEST_TOX_VAR:} {env:_PYTEST_TOX_RUN:/tests/none.py} {posargs}
setenv =
_PYTEST_TOX_ARGS = --random-order --cov --cov-report=
azure: _PYTEST_TOX_VAR = --variables instance/creds_keyvault.yaml
azure: _PYTEST_TOX_RUN = "tests/test_helpers_vault.py"
browser: _PYTEST_TOX_RUN = "tests/test_helpers_browser.py"
probes: _PYTEST_TOX_RUN = "tests/test_probes.py"
SE_ENDPOINT = http://localhost:4444/wd/hub
PAGE_LOAD_TIMEOUT = 5
PROBE_TIMEOUT = 3
COVERAGE_FILE = .coverage.{envname}
[testenv:cov-init]
skip_install = true
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage erase
[testenv:cov-report]
skip_install = true
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage combine
coverage report
coverage html
[testenv:docs]
basepython = python3
whitelist_externals = poetry
commands =
poetry install -v --no-dev --extras=keyvault
poetry install -v --no-dev --extras=docs
sphinx-build -b html -d {envtmpdir}/doctrees docs docs/_build
[testenv:linting]
basepython = python3
whitelist_externals = poetry
commands =
poetry install -v --no-dev --extras=code-lint
flake8 {posargs}
[pytest]
log_format = %(filename)-25s %(lineno)-4d %(levelname)-8s %(asctime)s %(message)s
log_date_format = %Y-%m-%d %H:%M:%S
log_cli = true
log_level = INFO
minversion = 3.5
[flake8]
exclude =
.venv
.git
.tox
*egg
docs/conf.py
tests/
import-order-style = cryptography
application-import-names = selenium_probes
show-source = true
enable-extensions=G
ignore = W503
; ignore = G001, E203, E266, W503, F403, F401
; max-complexity = 18
max-line-length = 88