-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
42 lines (34 loc) · 822 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
[tox]
envlist = update, py36, py37, py38, py39, py310, mypy-py36
isolated_build = True
[testenv]
deps = pytest
mypy-py36: mypy
commands = {envpython} -m pytest {posargs:--verbose} test_ansi.py
[testenv:develop]
deps = -rrequirements-develop.txt
commands = {posargs}
[mypy]
mypy_path = .
exclude = /venv/|build/
follow_imports=normal
# untyped
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
# dynamic typing
disallow_any_generics = True
# warnings
warn_unused_ignores = True
warn_return_any = True
warn_unreachable = True
warn_no_return = True
# misc
strict_equality = True
strict_optional = True
no_implicit_optional = True
allow_redefinition = True
warn_redundant_casts = True
warn_unused_configs = True
local_partial_types = True