-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (48 loc) · 953 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
49
50
51
52
53
54
[tox]
env_list = py{37,38,39,310},lint,type
isolated_build = true
[testenv]
setenv =
PDM_IGNORE_SAVED_PYTHON="1"
deps = pdm
commands =
pdm install --dev
pytest tests
[testenv:lint]
deps = pdm
pylint
commands =
pylint --rcfile=tox.ini chatgpt_cli
[testenv:type]
description = run type checks
deps =
mypy>=0.991
types-pkg-resources
commands =
mypy --check-untyped-defs {posargs:chatgpt_cli tests}
[pylint]
disable =
missing-module-docstring,
missing-docstring,
too-few-public-methods,
invalid-name,
global-variable-not-assigned,
global-statement,
raise-missing-from,
bare-except,
cyclic-import,
unused-argument,
subprocess-run-check,
[coverage:report]
exclude_lines =
except ImportError
raise ImportError
except ApiException
raise ApiException
raise ValueError
[gh]
python =
3.7 = py37
3.8 = py38
3.9 = py39, lint, type
3.10.10 = py310