forked from ethereum/staking-deposit-cli
-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
46 lines (38 loc) · 921 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
[tox]
envlist=
py312-core
py312-lint
py312-script
[testenv]
passenv=
PYTEST_ADDOPTS
basepython=
py312: python3.12
[common-install]
deps=
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
[common-core]
deps={[common-install]deps}
commands=
pytest {posargs:tests}
[common-lint]
deps={[common-install]deps}
commands=
flake8 --config={toxinidir}/flake8.ini {toxinidir}/tests
mypy --config-file {toxinidir}/mypy.ini -p ethstaker_deposit
[common-script]
deps=
-r{toxinidir}/requirements_test.txt # for async-pytest
commands=
python {toxinidir}/test_deposit_script.py
python {toxinidir}/test_btec_script.py
[testenv:py312-core]
deps={[common-core]deps}
commands={[common-core]commands}
[testenv:py312-lint]
deps={[common-lint]deps}
commands={[common-lint]commands}
[testenv:py312-script]
deps={[common-script]deps}
commands={[common-script]commands}