-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
76 lines (69 loc) · 1.46 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
[tox]
minversion = 3.8.0
envlist = py38, py39, py310, py311, mypy, pylint, flake8
isolated_build = true
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, mypy, pylint, flake8
[testenv]
description = Basic testing environment
deps =
pytest
pytest-cov
commands =
pytest --cov --cov-append
[testenv:mypy]
description = Type checking environment
basepython = python3.11
deps =
mypy
commands =
mypy openai_functions
[testenv:pylint]
description = Pylint environment
basepython = python3.11
deps =
pylint
commands =
pylint --fail-under 9 openai_functions
[testenv:flake8]
description = Flake8 environment
basepython = python3.11
deps =
flake8
darglint
dlint
flake8-annotations-complexity
flake8-annotations
flake8-bugbear
flake8-builtins
flake8-cognitive-complexity
flake8-comments
flake8-comprehensions
flake8-eradicate
flake8-expression-complexity
# flake8-new-union-types
# I'd love to use this one but I'm still aiming for 3.8 compatibility
flake8-pie
flake8-return
flake8-type-checking
flake8-use-fstring
flake8_simplify
pep8-naming
tryceratops
commands =
flake8 openai_functions
[flake8]
max-line-length = 88
extend-ignore = E203,W503,W504,ANN101,ANN102,DAR003,DAR402
max-annotations-complexity=4
[coverage:report]
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
class .*\bProtocol\):
@(abc\.)?abstractmethod
^\s*\.\.\.$