-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
69 lines (61 loc) · 1.07 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
67
68
69
[tox]
requires =
tox>=4
env_list =
lint,
py{310,311}
isolated_build = true
[testenv]
commands = pytest {posargs:tests}
description = run tests with pytest
deps =
pytest
pytest-cov
pytest-dotenv
pytest-mock
pytest-sugar
pytz
requests-mock
depends =
{py310,py311}: lint
report: py310, py311
skip_install = true
[testenv:lint]
description = lint and format code
deps =
black
flake8
pylint
pytz
requests
types-pytz
types-requests
commands =
black mpesa_sdk
flake8 mpesa_sdk
pylint -E mpesa_sdk
skip_install = true
[testenv:type]
description = run type checks
deps =
mypy
pytz
requests
types-pytz
types-requests
commands =
mypy {posargs:mpesa_sdk}
[flake8]
exclude = .tox,*.egg,build,data
ignore = E501,W503
max-line-length = 120
select = E,W,F
[gh-actions]
python =
3.10: py310
3.11: py311, lint
[pylint]
max-line-length = 120
[pytest]
addopts = -x --cov=mpesa_sdk --cov-append --cov-report xml --cov-report term-missing --cov-fail-under=90
testpaths = mpesa-python-sdk/tests