-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
106 lines (90 loc) · 1.77 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
97
98
99
100
101
102
103
104
105
106
[tox]
envlist = mypy,format,py311,pep8
isolated_build = True
skipsdist = True
[pytest]
testpaths = ["tests/"]
[flake8]
ignore = E501, E203, W503
[mypy]
allow_redefinition = true
disallow_any_generics = false
disallow_subclassing_any = true
disallow_untyped_calls = false
disallow_untyped_defs = true
implicit_reexport = true
no_implicit_optional = true
show_error_codes = true
strict = true
strict_equality = true
strict_optional = false
warn_redundant_casts = true
warn_return_any = false
warn_unused_configs = true
warn_unused_ignores = true
plugins = pydantic.mypy
ignore_missing_imports = True
[isort]
combine_as_imports = true
force_grid_wrap = 0
include_trailing_comma = true
multi_line_output = 3
no_lines_before = "LOCALFOLDER"
order_by_type = false
reverse_relative = true
force_single_line = False
[testenv]
setenv =
PYTHONPATH={toxinidir}
deps =
hypothesis
msgspec
pydantic
pytest
pytest-cov
pytest-sugar
-rrequirements.txt
commands = pytest tests/ --cov=. {posargs}
[testenv:format]
basepython = python3.11
deps =
black
isort
autoflake
commands =
autoflake --in-place --remove-all-unused-imports --remove-unused-variables --recursive .
black .
isort .
[testenv:mypy_install]
basepython = python3.11
deps = mypy
commands =
mypy --install-types
[testenv:mypy]
basepython = python3.11
deps =
quart
mypy
hypothesis
pytest
pytest-cov
pytest-sugar
python-dotenv
boto3-stubs
opencv-stubs
pandas-stubs
types-aiobotocore
types-aiofiles
types-dataclasses-json
types-Pillow
types-requests
plugins = numpy.typing.mypy_plugin
commands =
mypy --explicit-package-bases .
[testenv:pep8]
basepython = python3.11
deps =
flake8
pep8-naming
flake8-print
commands = flake8 .