pyproject.toml TOML 429 lines View on github.com → Search inside
1[build-system]2requires = ["pdm-backend"]3build-backend = "pdm.backend"45[project]6name = "fastapi"7dynamic = ["version"]8description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"9readme = "README.md"10license = "MIT"11license-files = ["LICENSE"]12requires-python = ">=3.10"13authors = [14    { name = "Sebastián Ramírez", email = "tiangolo@gmail.com" },15]16classifiers = [17    "Intended Audience :: Information Technology",18    "Intended Audience :: System Administrators",19    "Operating System :: OS Independent",20    "Programming Language :: Python :: 3",21    "Programming Language :: Python",22    "Topic :: Internet",23    "Topic :: Software Development :: Libraries :: Application Frameworks",24    "Topic :: Software Development :: Libraries :: Python Modules",25    "Topic :: Software Development :: Libraries",26    "Topic :: Software Development",27    "Typing :: Typed",28    "Development Status :: 4 - Beta",29    "Environment :: Web Environment",30    "Framework :: AsyncIO",31    "Framework :: FastAPI",32    "Framework :: Pydantic",33    "Framework :: Pydantic :: 2",34    "Intended Audience :: Developers",35    "Programming Language :: Python :: 3 :: Only",36    "Programming Language :: Python :: 3.10",37    "Programming Language :: Python :: 3.11",38    "Programming Language :: Python :: 3.12",39    "Programming Language :: Python :: 3.13",40    "Programming Language :: Python :: 3.14",41    "Topic :: Internet :: WWW/HTTP :: HTTP Servers",42    "Topic :: Internet :: WWW/HTTP",43]44dependencies = [45    "starlette>=0.46.0",46    "pydantic>=2.9.0",47    "typing-extensions>=4.8.0",48    "typing-inspection>=0.4.2",49    "annotated-doc>=0.0.2",50    "opentelemetry-api>=1.44.0",51]5253[project.urls]54Homepage = "https://github.com/fastapi/fastapi"55Documentation = "https://fastapi.tiangolo.com/"56Repository = "https://github.com/fastapi/fastapi"57Issues = "https://github.com/fastapi/fastapi/issues"58Changelog = "https://fastapi.tiangolo.com/release-notes/"5960[project.optional-dependencies]61opentelemetry = [62    "opentelemetry-sdk>=1.44.0",63    "opentelemetry-exporter-otlp-proto-http>=1.44.0",64]65standard = [66    "opentelemetry-sdk>=1.44.0",67    "opentelemetry-exporter-otlp-proto-http>=1.44.0",68    "fastapi-cli[standard] >=0.0.32",69    "fastar >= 0.9.0",70    # For the test client71    "httpx >=0.23.0,<1.0.0",72    "httpx2 >=2.0.0",73    # For templates74    "jinja2 >=3.1.5",75    # For forms and file uploads76    "python-multipart >=0.0.18",77    # To validate email fields78    "email-validator >=2.0.0",79    # Uvicorn with uvloop80    "uvicorn[standard] >=0.12.0",81    # # Settings management82    "pydantic-settings >=2.0.0",83    # # Extra Pydantic data types84    "pydantic-extra-types >=2.0.0",85]8687standard-no-fastapi-cloud-cli = [88    "opentelemetry-sdk>=1.44.0",89    "opentelemetry-exporter-otlp-proto-http>=1.44.0",90    "fastapi-cli[standard-no-fastapi-cloud-cli] >=0.0.32",91    # For the test client92    "httpx >=0.23.0,<1.0.0",93    "httpx2 >=2.0.0",94    # For templates95    "jinja2 >=3.1.5",96    # For forms and file uploads97    "python-multipart >=0.0.18",98    # To validate email fields99    "email-validator >=2.0.0",100    # Uvicorn with uvloop101    "uvicorn[standard] >=0.12.0",102    # # Settings management103    "pydantic-settings >=2.0.0",104    # # Extra Pydantic data types105    "pydantic-extra-types >=2.0.0",106]107108all = [109    "opentelemetry-sdk>=1.44.0",110    "opentelemetry-exporter-otlp-proto-http>=1.44.0",111    "fastapi-cli[standard] >=0.0.32",112    # # For the test client113    "httpx >=0.23.0,<1.0.0",114    "httpx2 >=2.0.0",115    # For templates116    "jinja2 >=3.1.5",117    # For forms and file uploads118    "python-multipart >=0.0.18",119    # For Starlette's SessionMiddleware, not commonly used with FastAPI120    "itsdangerous >=1.1.0",121    # For Starlette's schema generation, would not be used with FastAPI122    "pyyaml >=5.3.1",123    # To validate email fields124    "email-validator >=2.0.0",125    # Uvicorn with uvloop126    "uvicorn[standard] >=0.12.0",127    # Settings management128    "pydantic-settings >=2.0.0",129    # Extra Pydantic data types130    "pydantic-extra-types >=2.0.0",131]132133[project.scripts]134fastapi = "fastapi.cli:main"135136[dependency-groups]137dev = [138    { include-group = "tests" },139    { include-group = "docs" },140    { include-group = "translations" },141    "playwright >=1.57.0",142    "prek >=0.2.22",143    "zizmor >=1.23.1",144]145docs = [146    { include-group = "docs-tests" },147    "black >=25.1.0",148    "cairosvg >=2.8.2",149    "griffe-typingdoc >=0.3.0",150    "griffe-warnings-deprecated >=1.1.0",151    "jieba >=0.42.1",152    "markdown-include-variants >=0.0.8",153    "mdx-include >=1.4.1,<2.0.0",154    "mkdocstrings[python] >=1.0.3",155    "pillow >=11.3.0",156    "python-slugify >=8.0.4",157    "pyyaml >=5.3.1,<7.0.0",158    "typer >=0.21.1",159    "zensical >=0.0.42",160]161docs-tests = [162    "httpx >=0.23.0,<1.0.0",163    "httpx2>=2.0.0",164    "ruff>=0.14.14,<0.17.0",165]166github-actions = [167    "httpx >=0.27.0,<1.0.0",168    "pydantic >=2.9.0,<3.0.0",169    "pydantic-settings >=2.1.0,<3.0.0",170    "pygithub >=2.3.0,<3.0.0",171    "pyyaml >=5.3.1,<7.0.0",172    "smokeshow >=0.5.0",173]174tests = [175    "opentelemetry-instrumentation-fastapi>=0.65b0",176    "logfire>=5.1.0",177    "sentry-sdk>=2.70.0",178    "opentelemetry-sdk>=1.44.0",179    "opentelemetry-exporter-otlp-proto-http>=1.44.0",180181    { include-group = "docs-tests" },182    "anyio[trio] >=3.2.1,<5.0.0",183    "coverage[toml] >=7.13,<8.0",184    "dirty-equals >=0.9.0",185    "flask >=3.0.0,<4.0.0",186    "inline-snapshot >=0.21.1",187    "mypy >=1.14.1",188    "pwdlib[argon2] >=0.2.1",189    "pyjwt >=2.9.0",190    # Remove this cap after requiring a pytest-xdist release with the fix for191    # pytest >=9.2 loadgroup compatibility: https://github.com/pytest-dev/pytest-xdist/pull/1388192    "pytest >=9.0.0,<9.2",193    "pytest-codspeed >=4.3.0",194    "pyyaml >=5.3.1,<7.0.0",195    "sqlmodel >=0.0.31",196    "strawberry-graphql >=0.200.0,<1.0.0",197    "ty>=0.0.25",198    "typer >=0.26.1",199    "a2wsgi >=1.9.0,<=2.0.0",200    "pytest-xdist[psutil]>=3.0.2",201    "pytest-cov>=4.0.0",202    "pytest-sugar>=1.0.0",203    "pytest-timeout>=2.4.0",204]205translations = [206    "gitpython >=3.1.46",207    "pydantic-ai >=0.4.10",208    "pygithub >=2.8.1",209]210211[tool.pdm]212version = { source = "file", path = "fastapi/__init__.py" }213distribution = true214215[tool.pdm.build]216source-includes = [217    "tests/",218    "docs_src/",219    "scripts/",220    # For a test221    "docs/en/docs/img/favicon.png",222]223224[tool.mypy]225plugins = ["pydantic.mypy"]226strict = true227228[[tool.mypy.overrides]]229module = "fastapi.concurrency"230warn_unused_ignores = false231ignore_missing_imports = true232233[[tool.mypy.overrides]]234module = "fastapi.tests.*"235ignore_missing_imports = true236check_untyped_defs = true237238[[tool.mypy.overrides]]239module = "docs_src.*"240disallow_incomplete_defs = false241disallow_untyped_defs = false242disallow_untyped_calls = false243244[tool.pytest]245minversion = "9.0"246addopts = [247  "--strict-config",248  "--strict-markers",249  "--ignore=docs_src",250]251strict_xfail = true252filterwarnings = [253    "error",254]255timeout = "20"256257[tool.coverage.run]258patch = ["subprocess", "_exit"]259parallel = true260data_file = "coverage/.coverage"261source = [262    "docs_src",263    "tests",264    "fastapi"265]266relative_files = true267context = '${CONTEXT}'268omit = [269    "tests/benchmarks/*",270    "tests/memory_benchmarks/*",271    "docs_src/response_model/tutorial003_04_py310.py",272    "docs_src/dependencies/tutorial013_an_py310.py",  # temporary code example?273    "docs_src/dependencies/tutorial014_an_py310.py",  # temporary code example?274    # Pydantic v1 migration, no longer tested275    "docs_src/pydantic_v1_in_v2/tutorial001_an_py310.py",276    "docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py",277    "docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py",278    "docs_src/pydantic_v1_in_v2/tutorial004_an_py310.py",279]280281[tool.coverage.report]282show_missing = true283sort = "-Cover"284285[tool.coverage.html]286show_contexts = true287288[tool.ruff]289# Translation fixtures intentionally contain malformed code and comments.290extend-exclude = ["scripts/tests/test_translation_fixer/**/*.md"]291292[tool.ruff.lint]293select = [294    "E",  # pycodestyle errors295    "W",  # pycodestyle warnings296    "F",  # pyflakes297    "I",  # isort298    "B",  # flake8-bugbear299    "C4",  # flake8-comprehensions300    "UP",  # pyupgrade301]302ignore = [303    "E501",  # line too long, handled by black304    "B008",  # do not perform function calls in argument defaults305    "C901",  # too complex306]307308[tool.ruff.lint.per-file-ignores]309"__init__.py" = ["F401"]310"docs_src/custom_request_and_route/tutorial002_an_py310.py" = ["B904"]311"docs_src/custom_request_and_route/tutorial002_py310.py" = ["B904"]312"docs_src/custom_response/tutorial007_py310.py" = ["B007"]313"docs_src/dependencies/tutorial007_py310.py" = ["F821"]314"docs_src/dependencies/tutorial008_an_py310.py" = ["F821"]315"docs_src/dependencies/tutorial008_py310.py" = ["F821"]316"docs_src/dependencies/tutorial008b_an_py310.py" = ["B904"]317"docs_src/dependencies/tutorial008b_py310.py" = ["B904"]318"docs_src/dependencies/tutorial010_py310.py" = ["F821"]319"docs_src/path_operation_advanced_configuration/tutorial007_py310.py" = ["B904"]320"docs_src/query_params_str_validations/tutorial012_an_py310.py" = ["B006"]321"docs_src/query_params_str_validations/tutorial013_an_py310.py" = ["B006"]322"docs_src/security/tutorial004_an_py310.py" = ["B904"]323"docs_src/security/tutorial004_py310.py" = ["B904"]324"docs_src/security/tutorial005_an_py310.py" = ["B904"]325"docs_src/security/tutorial005_py310.py" = ["B904"]326"docs_src/json_base64_bytes/tutorial001_py310.py" = ["UP012"]327"docs_src/stream_json_lines/tutorial001_py310.py" = ["UP028"]328"docs_src/stream_data/tutorial001_py310.py" = ["UP028"]329"docs_src/stream_data/tutorial002_py310.py" = ["UP028"]330"docs_src/server_sent_events/tutorial001_py310.py" = ["UP028"]331332[tool.ruff.lint.isort]333known-third-party = ["fastapi", "pydantic", "starlette"]334335[tool.ruff.lint.pyupgrade]336# Preserve types, even if a file imports `from __future__ import annotations`.337keep-runtime-typing = true338339[tool.inline-snapshot]340# default-flags=["fix"]341# default-flags=["create"]342343[tool.typos.files]344extend-exclude = [345    "coverage/",346    "dist/",347    "docs/de/",348    "docs/en/data/",349    "docs/en/docs/img/",350    "docs/es/",351    "docs/fr/",352    "docs/ja/",353    "docs/ko/",354    "docs/language_names.yml",355    "docs/pt/",356    "docs/ru/",357    "docs/tr/",358    "docs/uk/",359    "docs/zh/",360    "docs/zh-hant/",361    "docs/hi/",362    "htmlcov/",363    "scripts/general-llm-prompt.md",364    "scripts/tests/test_translation_fixer/test_complex_doc/",365    "site/",366    "site_build/",367    "uv.lock",368]369370[tool.typos.default]371extend-ignore-re = [372    # GitHub usernames in @mentions373    "@[a-zA-Z0-9](?:-?[a-zA-Z0-9])*",374    # Quoted typo documented in a release note375    "'wll' to 'will'",376    # German article title in a release note377    "FastAPI Modul.",378]379380[tool.typos.default.extend-identifiers]381alls = "alls"382383[tool.typos.default.extend-words]384ba = "ba"385certifi = "certifi"386fo = "fo"387havin = "havin"388Ines = "Ines"389ser = "ser"390391[tool.ty.src]392exclude = [393    # These docs examples are intentionally partial, dynamic, environment-driven,394    # deprecated, or currently require broader tutorial rewrites to satisfy ty.395    "docs_src/additional_status_codes/",396    "docs_src/app_testing/tutorial003_py310.py",397    "docs_src/body_multiple_params/",398    "docs_src/body_updates/tutorial002_py310.py",399    "docs_src/custom_docs_ui/",400    "docs_src/custom_response/tutorial001_py310.py",401    "docs_src/custom_response/tutorial001b_py310.py",402    "docs_src/custom_response/tutorial009c_py310.py",403    "docs_src/dependencies/tutorial007_py310.py",404    "docs_src/dependencies/tutorial008_an_py310.py",405    "docs_src/dependencies/tutorial008_py310.py",406    "docs_src/dependencies/tutorial010_py310.py",407    "docs_src/events/",408    "docs_src/extending_openapi/tutorial001_py310.py",409    "docs_src/path_params_numeric_validations/",410    "docs_src/pydantic_v1_in_v2/tutorial004_an_py310.py",411    "docs_src/python_types/tutorial003_py310.py",412    "docs_src/python_types/tutorial011_py310.py",413    "docs_src/query_params_str_validations/",414    "docs_src/response_model/tutorial006_py310.py",415    "docs_src/security/tutorial003_an_py310.py",416    "docs_src/security/tutorial003_py310.py",417    "docs_src/security/tutorial004_an_py310.py",418    "docs_src/security/tutorial004_py310.py",419    "docs_src/security/tutorial005_an_py310.py",420    "docs_src/security/tutorial005_py310.py",421    "docs_src/settings/",422    "docs_src/sql_databases/",423    "docs_src/using_request_directly/tutorial001_py310.py",424    "docs_src/wsgi/tutorial001_py310.py",425]426427[tool.ty.terminal]428error-on-warning = true

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.

Generated by searchcode.com · powered by code_get_file + code_get_findings