-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
66 lines (62 loc) · 1.32 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
[tox]
envlist = py312, flake8, black
[testenv]
deps =
freezegun
moto[dynamodb,s3]
pytest
pytest-mock
requests_mock
-rrequirements.txt
commands =
pytest {posargs}
setenv =
SERVICE_NAME = metadata-api
AWS_ACCESS_KEY_ID = mock
AWS_REGION=eu-west-1
AWS_SECRET_ACCESS_KEY = mock
AWS_SECURITY_TOKEN = mock
AWS_SESSION_TOKEN = mock
AWS_XRAY_SDK_ENABLED = false
OKDATA_PERMISSION_API_URL = "https://example.com/okdata-permission-api"
ENABLE_AUTH = true
KEYCLOAK_SERVER=https://example.org
KEYCLOAK_REALM=mock
RESOURCE_SERVER_CLIENT_ID=okdata-resource-server
CLIENT_ID=mock
DATA_BUCKET_NAME=test-data-bucket
LOGS_BUCKET_NAME=test-logs-bucket
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
flake8
[testenv:black]
skip_install = true
deps =
black
commands =
black --check . --exclude "\.build_venv|\.tox|\.venv|\.serverless|node_modules|venv"
[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