-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
60 lines (55 loc) · 957 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
55
56
57
58
59
60
[tox]
envlist = py39,py310,py311,py312,py313,flake8,black,mypy
[testenv]
deps=
freezegun
PyJWT
pytest
pytest-mock
python-dateutil
requests-mock
-rrequirements.txt
commands=
pytest {posargs}
setenv =
OKDATA_CLIENT_ID = my-okdata-user
OKDATA_CLIENT_SECRET = my-okdata-password
[testenv:black]
skip_install = true
deps =
black
commands =
black --check .
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
flake8
[testenv:mypy]
skip_install = true
deps =
mypy==0.991
types-requests==2.25.12
-rrequirements.txt
commands =
mypy -p okdata
[flake8]
# https://github.com/ambv/black/blob/master/.flake8
ignore = E203, E266, E402, 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