-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
54 lines (49 loc) · 856 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
49
50
51
52
53
54
[tox]
envlist = py312, flake8, black
[testenv]
deps =
pytest
requests-mock
-r requirements.txt
commands =
pytest -s {posargs}
setenv =
AWS_REGION = eu-west-1
AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
EMAIL_API_URL=https://test
SERVICE_NAME=test
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
flake8
[testenv:black]
skip_install = true
deps =
black
commands =
black --check .
[flake8]
# https://github.com/ambv/black/blob/master/.flake8
ignore = E203, E266, E501, W503
max-line-length = 80
max-complexity = 18
select = B,C,E,F,W,T4,B9
# Keep exclude in sync with black config in pyproject.toml
exclude =
.git,
.tox,
node_modules,
__pycache__,
libs,
*.pyc,
.cache,
.eggs,
*.egg,
*.egg-info,
env,
venv,
.*venv,
.serverless