-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
61 lines (57 loc) · 1.16 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
[tox]
envlist = py311, flake8, black
[testenv]
deps=
pytest
moto
freezegun
requests-mock
-rrequirements.txt
commands=
pytest -s {posargs}
setenv =
AWS_REGION=eu-west-1
AWS_ACCESS_KEY_ID = mock
AWS_SECRET_ACCESS_KEY = mock
METADATA_API_URL = https://api.data-dev.oslo.systems/metadata
STATUS_API_URL = https://api.data-dev.oslo.systems/status-api/status
BUCKET = testbucket
AWS_XRAY_SDK_ENABLED = false
KEYCLOAK_SERVER=https://example.org
KEYCLOAK_REALM=mock
RESOURCE_SERVER_CLIENT_ID=resource-server
ENABLE_AUTH=true
OKDATA_CLIENT_ID=mock
OKDATA_CLIENT_SECRET=mock
SERVICE_NAME=data-uploader
[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__,
.eggs,
*.egg,
*.egg-info,
env,
venv,
.*venv,
.serverless