-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (43 loc) · 1013 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
[tox]
skipsdist = True
envlist = py38,py39,lint,py310,py311,py312,py313,coverage
[flake8]
max-line-length = 120
[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 = -rrequirements-dev.txt
commands =
python --version
pip freeze
pytest tests
[testenv:lint]
description = run lint, type and format checks
base_python = py39
deps = -rrequirements-dev.txt
commands =
python --version
mypy credit_rate_limit
flake8 credit_rate_limit
flake8 tests
isort --check --diff credit_rate_limit
isort --check --diff tests
[testenv:coverage]
description = run coverage and output json result
base_python = py39
deps = -rrequirements-dev.txt
commands =
python --version
coverage run -m pytest tests
coverage report -m
coverage json