2020-09-06 10:08:07 +00:00
|
|
|
[flake8]
|
|
|
|
ignore = W503, E203, B305
|
|
|
|
max-line-length = 88
|
|
|
|
|
|
|
|
[mypy]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
ignore_missing_imports = True
|
2021-12-15 17:16:31 +00:00
|
|
|
show_error_codes = True
|
2020-09-06 10:08:07 +00:00
|
|
|
|
|
|
|
[mypy-tests.*]
|
|
|
|
disallow_untyped_defs = False
|
2022-01-11 08:28:39 +00:00
|
|
|
check_untyped_defs = True
|
2020-09-06 10:08:07 +00:00
|
|
|
|
|
|
|
[tool:isort]
|
|
|
|
profile = black
|
|
|
|
combine_as_imports = True
|
|
|
|
|
|
|
|
[tool:pytest]
|
2020-09-11 09:19:47 +00:00
|
|
|
addopts =
|
|
|
|
-rxXs
|
|
|
|
--strict-config
|
|
|
|
--strict-markers
|
|
|
|
xfail_strict=True
|
|
|
|
filterwarnings=
|
|
|
|
# Turn warnings that aren't filtered into exceptions
|
|
|
|
error
|
|
|
|
ignore: Using or importing the ABCs from 'collections' instead of from 'collections\.abc' is deprecated.*:DeprecationWarning
|
|
|
|
ignore: The 'context' alias has been deprecated. Please use 'context_value' instead\.:DeprecationWarning
|
|
|
|
ignore: The 'variables' alias has been deprecated. Please use 'variable_values' instead\.:DeprecationWarning
|
2021-09-16 12:16:25 +00:00
|
|
|
# Workaround for Python 3.9.7 (see https://bugs.python.org/issue45097)
|
|
|
|
ignore:The loop argument is deprecated since Python 3\.8, and scheduled for removal in Python 3\.10\.:DeprecationWarning:asyncio
|
2022-02-11 16:40:34 +00:00
|
|
|
ignore: starlette\.middleware\.wsgi is deprecated and will be removed in a future release\.*:DeprecationWarning
|
2021-06-19 11:42:56 +00:00
|
|
|
|
|
|
|
[coverage:run]
|
|
|
|
source_pkgs = starlette, tests
|
2021-11-30 18:13:08 +00:00
|
|
|
|
|
|
|
[coverage:report]
|
|
|
|
exclude_lines =
|
|
|
|
pragma: no cover
|
|
|
|
pragma: nocover
|
|
|
|
if typing.TYPE_CHECKING:
|