-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
91 lines (83 loc) · 1.57 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
[tox]
# `allowlist_externals` introduced in tox 3.18.0 (deprecating `whitelist_externals`)
minversion = 3.18.0
envlist = py39
[testenv]
basepython = python3.9
# Setting usedevelop to True is necessary to avoid tox bug that otherwise causes
# the pytest coverage plugin to fail to collect coverage data, issuing the
# message 'CoverageWarning: No data was collected. (no-data-collected)'
usedevelop = True
extras =
test
dev
envdir = .venv
passenv = AWS_DEFAULT_REGION
allowlist_externals =
make
commands =
make install-node
python -m pytest -vv --cov src --cov-report term-missing tests/unit
python -m pyright src tests
flake8
[testenv:integration]
extras =
test
dev
envdir = .venv
passenv = AWS_*
commands =
python -m pytest -vv {posargs}
[testenv:dev]
extras = {[cdk]extras}
envdir = .venv
passenv = {[cdk]passenv}
allowlist_externals = {[cdk]allowlist_externals}
commands =
{[cdk]commands}
cdk {posargs}
[cdk]
extras = dev
passenv =
AWS_*
HLS_LPDAAC_*
allowlist_externals =
cdk
make
commands =
make install-cdk
cdk --version
[flake8]
ignore = E203, E266, E501, W503, F403, F401, E231
exclude =
__pycache__
.git
.tox
.*venv*
cdk.out
*.egg-info
max-line-length = 90
max-complexity = 18
select = B,C,E,F,W,T4,B9
[black]
line-length = 90
[isort]
profile = black
src_paths =
*.py
cdk
src
tests
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 90
[pytest]
minversion = 6.0
addopts = -ra -q
filterwarnings =
ignore::FutureWarning
testpaths =
tests