-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (42 loc) · 1014 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
41
42
43
44
45
46
47
48
[tox]
envlist = py39
[testenv]
extras = test
envdir = toxenv
passenv = AWS_DEFAULT_REGION
commands =
pip install --use-pep517 -e ./layers/hls_lambda_layer/python
python -m pytest --cov=lambda_functions --ignore=node_modules --ignore=cdk.out
flake8
[cdk]
extras = dev
passenv =
GCC
HLS_*
AWS_*
commands =
nodeenv --node=lts --python-virtualenv
npm install -g aws-cdk@v2.*
cdk --version
[testenv:dev]
extras = {[cdk]extras}
envdir = devenv
passenv = {[cdk]passenv}
whitelist_externals = sh
commands =
pip install -e ./layers/hls_lambda_layer/python
{[cdk]commands}
pip install -e ./layers/hls_lambda_layer/python
cdk {posargs}
# Lint
[flake8]
ignore = E203, E266, E501, W503, F403, F401, E231, E721
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist,toxenv,devenv,cdk.out,.tox
max-line-length = 90
max-complexity = 18
select = B,C,E,F,W,T4,B9
[black]
line-length = 90
[isort]
profile = black
skip = .git,__pycache__,docs/source/conf.py,old,build,dist,toxenv,devenv,cdk.out