forked from encode/uvicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
54 lines (49 loc) · 1.49 KB
/
setup.cfg
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
[mypy]
disallow_untyped_defs = True
ignore_missing_imports = True
follow_imports = silent
# NOTE: If you are seeing this, feel free to create a PR to cover the below files.
exclude = (?x)
^(
|tests/protocols/test_utils.py
)$
[mypy-tests.*]
disallow_untyped_defs = False
check_untyped_defs = True
[tool:pytest]
addopts = -rxXs
--strict-config
--strict-markers
xfail_strict=True
filterwarnings=
# Turn warnings that aren't filtered into exceptions
error
ignore: \"watchgod\" is deprecated\, you should switch to watchfiles \(`pip install watchfiles`\)\.:DeprecationWarning
ignore: Uvicorn's native WSGI implementation is deprecated, you should switch to a2wsgi \(`pip install a2wsgi`\)\.:DeprecationWarning
ignore: 'cgi' is deprecated and slated for removal in Python 3\.13:DeprecationWarning
[coverage:run]
omit = venv/*
include = uvicorn/*, tests/*
plugins =
coverage_conditional_plugin
[coverage:report]
precision = 2
fail_under = 98.80
show_missing = true
skip_covered = true
exclude_lines =
pragma: no cover
pragma: nocover
if TYPE_CHECKING:
if typing.TYPE_CHECKING:
raise NotImplementedError
[coverage:coverage_conditional_plugin]
rules =
"sys_platform == 'win32'": py-win32
"sys_platform != 'win32'": py-not-win32
"sys_platform == 'linux'": py-linux
"sys_platform == 'darwin'": py-darwin
"sys_version_info >= (3, 8)": py-gte-38
"sys_version_info < (3, 8)": py-lt-38
"sys_version_info < (3, 9)": py-gte-39
"sys_version_info < (3, 9)": py-lt-39