-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
96 lines (89 loc) · 1.52 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
env_list = py38, py39, py310, py311, py312, py313, lint, type, black
isolated_build = True
requires =
tox>=4.2
hatchling>=1.21.0
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313, lint, type, black
[testenv]
skip_install = false
deps =
pytest>=7.0
mypy
flake8
black
types-requests
pandas-stubs
commands =
pytest {posargs:tests}
mypy bifrost_cli
{env:SKIP_FLAKE8:flake8 bifrost_cli}
{env:SKIP_BLACK:black --check bifrost_cli}
passenv =
HOME
USERPROFILE
CI
GITHUB_*
allowlist_externals =
true
false
[testenv:lint]
description = run linters
skip_install = true
deps =
flake8
black
isort
commands =
black --check bifrost_cli
flake8 bifrost_cli
isort --check-only bifrost_cli
[testenv:type]
description = run type checks
skip_install = true
deps =
mypy
types-requests
pandas-stubs
commands =
mypy bifrost_cli
[testenv:black]
description = run black formatter
skip_install = true
deps = black
commands = black bifrost_cli
[testenv:format]
description = run formatters
skip_install = true
deps =
black
isort
commands =
black bifrost_cli
isort bifrost_cli
[flake8]
max-line-length = 130
extend-ignore = E203, W503
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.eggs
[isort]
profile = black
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
line_length = 88