2022-08-24 05:50:13 +00:00
[ build-system ]
requires = [ "hatchling" ]
build-backend = "hatchling.build"
[ project ]
name = "starlette"
dynamic = [ "version" ]
description = "The little ASGI library that shines."
readme = "README.md"
license = "BSD-3-Clause"
2023-07-13 08:19:12 +00:00
requires-python = ">=3.8"
2024-02-29 10:16:42 +00:00
authors = [ { name = "Tom Christie" , email = "tom@tomchristie.com" } ]
2022-08-24 05:50:13 +00:00
classifiers = [
"Development Status :: 3 - Alpha" ,
"Environment :: Web Environment" ,
"Framework :: AnyIO" ,
"Intended Audience :: Developers" ,
"License :: OSI Approved :: BSD License" ,
"Operating System :: OS Independent" ,
"Programming Language :: Python :: 3" ,
"Programming Language :: Python :: 3.8" ,
"Programming Language :: Python :: 3.9" ,
"Programming Language :: Python :: 3.10" ,
2022-09-22 15:18:44 +00:00
"Programming Language :: Python :: 3.11" ,
2023-07-13 19:23:03 +00:00
"Programming Language :: Python :: 3.12" ,
2022-08-24 05:50:13 +00:00
"Topic :: Internet :: WWW/HTTP" ,
]
dependencies = [
"anyio>=3.4.0,<5" ,
"typing_extensions>=3.10.0; python_version < '3.10'" ,
]
[ project . optional-dependencies ]
full = [
"itsdangerous" ,
"jinja2" ,
2024-02-03 12:34:10 +00:00
"python-multipart>=0.0.7" ,
2022-08-24 05:50:13 +00:00
"pyyaml" ,
2022-09-06 05:43:32 +00:00
"httpx>=0.22.0" ,
2022-08-24 05:50:13 +00:00
]
[ project . urls ]
Homepage = "https://github.com/encode/starlette"
2022-09-29 15:10:51 +00:00
Documentation = "https://www.starlette.io/"
Changelog = "https://www.starlette.io/release-notes/"
Funding = "https://github.com/sponsors/encode"
Source = "https://github.com/encode/starlette"
2022-08-24 05:50:13 +00:00
[ tool . hatch . version ]
path = "starlette/__init__.py"
2023-11-08 16:43:38 +00:00
[ tool . ruff . lint ]
2024-02-29 10:16:42 +00:00
select = [ "E" , "F" , "I" , "FA" , "UP" ]
2024-07-27 09:03:46 +00:00
ignore = [ "UP031" ]
2023-04-05 12:30:01 +00:00
2023-11-08 16:43:38 +00:00
[ tool . ruff . lint . isort ]
2023-04-05 12:30:01 +00:00
combine-as-imports = true
2023-05-16 13:50:46 +00:00
[ tool . mypy ]
2023-07-23 21:41:50 +00:00
strict = true
2023-05-16 13:50:46 +00:00
ignore_missing_imports = true
2023-07-23 21:41:50 +00:00
python_version = "3.8"
2023-05-16 13:50:46 +00:00
[ [ tool . mypy . overrides ] ]
module = "starlette.testclient.*"
2023-07-23 21:41:50 +00:00
implicit_optional = true
2023-05-16 13:50:46 +00:00
[ tool . pytest . ini_options ]
2024-06-04 19:47:30 +00:00
addopts = "-rXs --strict-config --strict-markers"
2023-05-16 13:50:46 +00:00
xfail_strict = true
filterwarnings = [
# Turn warnings that aren't filtered into exceptions
"error" ,
"ignore: run_until_first_complete is deprecated and will be removed in a future version.:DeprecationWarning" ,
"ignore: starlette.middleware.wsgi is deprecated and will be removed in a future release.*:DeprecationWarning" ,
"ignore: Async generator 'starlette.requests.Request.stream' was garbage collected before it had been exhausted.*:ResourceWarning" ,
"ignore: path is deprecated.*:DeprecationWarning:certifi" ,
"ignore: Use 'content=<...>' to upload raw bytes/text content.:DeprecationWarning" ,
"ignore: The `allow_redirects` argument is deprecated. Use `follow_redirects` instead.:DeprecationWarning" ,
"ignore: 'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning" ,
"ignore: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.:RuntimeWarning" ,
2024-07-27 09:03:46 +00:00
# TODO: This warning appeared when we bumped anyio to 4.4.0.
"ignore: Unclosed .MemoryObject(Send|Receive)Stream.:ResourceWarning" ,
2023-05-16 13:50:46 +00:00
]
[ tool . coverage . run ]
2024-02-29 10:16:42 +00:00
source_pkgs = [ "starlette" , "tests" ]
2023-05-16 13:50:46 +00:00
[ tool . coverage . report ]
exclude_lines = [
"pragma: no cover" ,
"pragma: nocover" ,
"if typing.TYPE_CHECKING:" ,
"@typing.overload" ,
]