-
-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathtox.ini
More file actions
69 lines (64 loc) · 1.42 KB
/
tox.ini
File metadata and controls
69 lines (64 loc) · 1.42 KB
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]
skipsdist = True
envlist =
py{310,311,312,313,314}-web3{714,7}
lint-web3{714,7}
coverage
[flake8]
max-line-length = 120
exclude = .venv, build, dist, .git, __pycache__, .tox, .github, media, notes, tutorials, .idea, .coverage, .mypy_cache
[isort]
atomic = True
ensure_newline_before_comments = False
force_grid_wrap = 2
force_sort_within_sections = True
include_trailing_comma = True
lines_after_imports = 2
line_length = 120
multi_line_output = 3
order_by_type = False
use_parentheses = True
[testenv]
description = run tests
deps =
web3714: web3==7.14.0
web37: web3>=7.14.1,<8.0.0
pytest
pytest-asyncio
pytest-mock
commands =
python --version
pip freeze
pytest tests
[testenv:lint-web3{714,7}]
description = run lint, type and format checks
deps =
web3714: web3==7.14.0
web37: web3>=7.14.1,<8.0.0
basedpyright
coverage
flake8
isort
pytest
commands =
python --version
pip freeze
basedpyright
flake8 uniswap_universal_router_decoder
flake8 tests
flake8 integration_tests
isort --check --diff uniswap_universal_router_decoder
isort --check --diff tests
isort --check --diff integration_tests
[testenv:coverage]
description = run coverage and output json result
deps =
web3>=7.14.0,<8.0.0
dependency_groups =
dev
commands =
python --version
pip freeze
coverage run -m pytest tests
coverage report -m
coverage json