pyproject.toml
This file
Path
pyproject.toml
271 lines · 8.4 KiB · TOML
Last changed by
💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370
History of this fileTake it
The walk stopped after 200 commits: lines older than 7e80ab7 point at it.
📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 1–6why, one step back1[build-system]2requires = ["pdm-backend"]3build-backend = "pdm.backend"45[project]6name = "typer"🔧 Add PEP-639 license metadata (#1387)Sofie Van Landeghembefore adoption53e9b3c
lines 7–8why, one step back7license = "MIT"8license-files = ["LICENSE"]📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 9–13why, one step back9dynamic = ["version"]10description = "Typer, build great CLIs. Easy to code. Based on Python type hints."11authors = [12 {name = "Sebastián Ramírez", email = "tiangolo@gmail.com"},13]➖ Drop support for Python 3.8 (#1464)Sebastián Ramírezbefore adoptionfbff83e
line 14why, one step back14requires-python = ">=3.9"📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 15–33why, one step back15classifiers = [16 "Intended Audience :: Information Technology",17 "Intended Audience :: System Administrators",18 "Operating System :: OS Independent",19 "Programming Language :: Python :: 3",20 "Programming Language :: Python",21 "Topic :: Software Development :: Libraries :: Application Frameworks",22 "Topic :: Software Development :: Libraries :: Python Modules",23 "Topic :: Software Development :: Libraries",24 "Topic :: Software Development",25 "Typing :: Typed",26 "Development Status :: 4 - Beta",27 "Intended Audience :: Developers",28 "Programming Language :: Python :: 3 :: Only",29 "Programming Language :: Python :: 3.9",30 "Programming Language :: Python :: 3.10",31 "Programming Language :: Python :: 3.11",32 "Programming Language :: Python :: 3.12",33 "Programming Language :: Python :: 3.13",⬆️ Add support for Python 3.14 (#1372)Sofie Van Landeghembefore adoption9e4764d
line 34why, one step back34 "Programming Language :: Python :: 3.14",📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 35–37why, one step back35]36dependencies = [37 "click >= 8.0.0",💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370
lines 38–39why, one step back38 "shellingham >=1.3.0",39 "rich >=10.11.0",📝 Add reference (code API) docs (#1504)Sofie Van Landeghembefore adoption2d529b2
line 40why, one step back40 "annotated-doc >=0.0.2",📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 41–42why, one step back41]42readme = "README.md"⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af
line 43why, one step back43📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 44–50why, one step back44[project.urls]45Homepage = "https://github.com/fastapi/typer"46Documentation = "https://typer.tiangolo.com"47Repository = "https://github.com/fastapi/typer"48Issues = "https://github.com/fastapi/typer/issues"49Changelog = "https://typer.tiangolo.com/release-notes/"50💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370
lines 51–52why, one step back51[project.scripts]52typer = "typer.cli:main"📝 Update release notesgithub-actions[bot]before adoption7e80ab7
line 53why, one step back53⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af
lines 54–57why, one step back54[dependency-groups]55dev = [56 { include-group = "tests" },57 { include-group = "docs" },📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0
line 58why, one step back58 "prek >=0.3.2",⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af
lines 59–60why, one step back59]60docs = [📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0
lines 61–71why, one step back61 "cairosvg >=2.8.2",62 "griffe-typingdoc >=0.3.0",63 "griffe-warnings-deprecated >=1.1.0",64 "markdown-include-variants >=0.0.8",65 "mdx-include >=1.4.1",66 "mkdocs-macros-plugin >=1.5.0",67 "mkdocs-material >=9.7.1",68 "mkdocs-redirects >=1.2.1",69 "mkdocstrings[python] >=0.30.1",70 "pillow >=11.3.0",71 "pyyaml >=5.3.1",⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af
lines 72–73why, one step back72]73github-actions = [📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0
lines 74–78why, one step back74 "httpx >=0.27.0",75 "pydantic >=2.5.3",76 "pydantic-settings >=2.1.0",77 "pygithub >=2.3.0",78 "smokeshow >=0.5.0",⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af
lines 79–80why, one step back79]80tests = [📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0
lines 81–90why, one step back81 "coverage[toml] >=6.2",82 "mypy >=1.19.1",83 "ty >=0.0.9",84 "pytest >=4.4.0",85 "pytest-cov >=2.10.0",86 "pytest-sugar >=0.9.4",87 "pytest-xdist >=1.32.0",88 "rich >=10.11.0",89 "ruff >=0.15.0",90 "shellingham >=1.3.0",⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af
lines 91–92why, one step back91]92📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 93–101why, one step back93[tool.pdm]94version = { source = "file", path = "typer/__init__.py" }95distribution = true9697[tool.pdm.build]98source-includes = [99 "tests/",100 "docs_src/",101 "scripts/",⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af
line 102why, one step back102]📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 103–110why, one step back103104[tool.tiangolo._internal-slim-build]105sync-dependencies = [106 "typer"107]108109[tool.tiangolo._internal-slim-build.packages.typer-slim.project]110name = "typer-slim"💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370
lines 111–114why, one step back111readme = "typer-slim/README.md"112dependencies = [113 "typer",114]📝 Update release notesgithub-actions[bot]before adoption7e80ab7
line 115why, one step back115optional-dependencies = {}💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370
line 116why, one step back116scripts = {}📝 Update release notesgithub-actions[bot]before adoption7e80ab7
line 117why, one step back117💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370
lines 118–133why, one step back118[tool.tiangolo._internal-slim-build.packages.typer-slim.tool.pdm.build]119# excludes needs to explicitly exclude the top level python packages,120# otherwise PDM includes them by default121# A "*" glob pattern can't be used here because in PDM internals, the patterns are put122# in a set (unordered, order varies) and each excluded file is assigned one of the123# glob patterns that matches, as the set is unordered, the matched pattern could be "*"124# independent of the order here. And then the internal code would give it a lower score125# than the one for a default included file.126# By not using "*" and explicitly excluding the top level packages, they get a higher127# score than the default inclusion128excludes = ["typer", "tests", "pdm_build.py"]129# source-includes needs to explicitly define some value because PDM will check the130# truthy value of the list, and if empty, will include some defaults, including "tests",131# an empty string doesn't match anything, but makes the list truthy, so that PDM132# doesn't override it during the build.133source-includes = [""]📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 134–141why, one step back134135[tool.tiangolo._internal-slim-build.packages.typer-cli.project]136name = "typer-cli"137readme = "typer-cli/README.md"138dependencies = [139 "typer",140]141optional-dependencies = {}💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370
line 142why, one step back142scripts = {}📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 143–182why, one step back143144[tool.tiangolo._internal-slim-build.packages.typer-cli.tool.pdm.build]145# excludes needs to explicitly exclude the top level python packages,146# otherwise PDM includes them by default147# A "*" glob pattern can't be used here because in PDM internals, the patterns are put148# in a set (unordered, order varies) and each excluded file is assigned one of the149# glob patterns that matches, as the set is unordered, the matched pattern could be "*"150# independent of the order here. And then the internal code would give it a lower score151# than the one for a default included file.152# By not using "*" and explicitly excluding the top level packages, they get a higher153# score than the default inclusion154excludes = ["typer", "tests", "pdm_build.py"]155# source-includes needs to explicitly define some value because PDM will check the156# truthy value of the list, and if empty, will include some defaults, including "tests",157# an empty string doesn't match anything, but makes the list truthy, so that PDM158# doesn't override it during the build.159source-includes = [""]160161[tool.pytest.ini_options]162addopts = [163 "--strict-config",164 "--strict-markers",165]166xfail_strict = true167junit_family = "xunit2"168filterwarnings = [169 "error",170 # For pytest-xdist171 'ignore::DeprecationWarning:xdist',172]173174[tool.coverage.run]175parallel = true176data_file = "coverage/.coverage"177source = [178 "docs_src",179 "tests",180 "typer"181]182omit = [📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2
line 183why, one step back183 "typer/_typing.py",📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 184–232why, one step back184]185context = '${CONTEXT}'186relative_files = true187188[tool.coverage.report]189exclude_lines = [190 "pragma: no cover",191 "@overload",192 'if __name__ == "__main__":',193 "if TYPE_CHECKING:",194]195196[tool.mypy]197strict = true198199[[tool.mypy.overrides]]200module = "docs_src.*"201disallow_incomplete_defs = false202disallow_untyped_defs = false203disallow_untyped_calls = false204205[[tool.mypy.overrides]]206module = "shellingham"207ignore_missing_imports = true208209[tool.ruff.lint]210select = [211 "E", # pycodestyle errors212 "W", # pycodestyle warnings213 "F", # pyflakes214 "I", # isort215 "B", # flake8-bugbear216 "C4", # flake8-comprehensions217 "UP", # pyupgrade218 "TID", # flake8-tidy-imports219]220ignore = [221 "E501", # line too long, handled by black222 "B008", # do not perform function calls in argument defaults223 "C901", # too complex224 "W191", # indentation contains tabs225 "TID252", # relative imports okay226]227228[tool.ruff.lint.per-file-ignores]229# "__init__.py" = ["F401"]230# rich_utils is allowed to use rich imports231"typer/rich_utils.py" = ["TID251"]232# This file is more readable without yield from📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2
line 233why, one step back233"docs_src/progressbar/tutorial004_py39.py" = ["UP028", "B007"]📝 Update release notesgithub-actions[bot]before adoption7e80ab7
line 234why, one step back234# Default mutable data structure📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2
lines 235–240why, one step back235"docs_src/options_autocompletion/tutorial006_an_py39.py" = ["B006"]236"docs_src/multiple_values/multiple_options/tutorial002_an_py39.py" = ["B006"]237"docs_src/options_autocompletion/tutorial007_an_py39.py" = ["B006"]238"docs_src/options_autocompletion/tutorial008_an_py39.py" = ["B006"]239"docs_src/options_autocompletion/tutorial009_an_py39.py" = ["B006"]240"docs_src/parameter_types/enum/tutorial003_an_py39.py" = ["B006"]📝 Update release notesgithub-actions[bot]before adoption7e80ab7
line 241why, one step back241# Loop control variable `value` not used within loop body📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2
lines 242–245why, one step back242"docs_src/progressbar/tutorial001_py39.py" = ["B007"]243"docs_src/progressbar/tutorial003_py39.py" = ["B007"]244"docs_src/progressbar/tutorial005_py39.py" = ["B007"]245"docs_src/progressbar/tutorial006_py39.py" = ["B007"]📝 Update release notesgithub-actions[bot]before adoption7e80ab7
line 246why, one step back246# Local variable `delete` is assigned to but never used📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2
line 247why, one step back247"docs_src/prompt/tutorial003_py39.py" = ["F841"]📝 Update release notesgithub-actions[bot]before adoption7e80ab7
line 248why, one step back248# Loop control variable `x` not used within loop body📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2
line 249why, one step back249"docs_src/using_click/tutorial001_py39.py" = ["B007"]📝 Update release notesgithub-actions[bot]before adoption7e80ab7
lines 250–267why, one step back250# No need to worry about rich imports in docs251"docs_src/*" = ["TID"]252253[tool.ruff.lint.isort]254known-third-party = ["typer", "click"]255# For docs_src/subcommands/tutorial003/256known-first-party = ["reigns", "towns", "lands", "items", "users"]257258[tool.ruff.lint.pyupgrade]259# Preserve types, even if a file imports `from __future__ import annotations`.260keep-runtime-typing = true261262[tool.ruff.lint.flake8-tidy-imports]263# Import rich_utils from within functions (lazy), not at the module level (TID253)264banned-module-level-imports = ["typer.rich_utils"]265266[tool.ruff.lint.flake8-tidy-imports.banned-api]267"rich".msg = "Use 'typer.rich_utils' instead of importing from 'rich' directly."♻️ Refactor the handling of `shellingham` (#1347)Nathan McDougallbefore adoptionfd4241f
lines 268–271why, one step back268"shellingham.detect_shell".msg = """\269Use 'typer._completion_shared._get_shell_name' instead of using \270'shellingham.detect_shell' directly.271"""