Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

265 lines · 8.3 KiB · TOML

Last changed by

👷 Run tests with lower bound uv sync, update minimum dependencies (#1526)Motov Yuriibefore adoption459030e

History of this file

Take it

The walk stopped after 200 commits: lines older than eff0e36 point at it.

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 1–13why, one step back
1[build-system]
2requires = ["pdm-backend"]3build-backend = "pdm.backend"45[project]6name = "typer"7license = "MIT"8license-files = ["LICENSE"]9dynamic = ["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 back
14requires-python = ">=3.9"

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 15–36why, one step back
15classifiers = [
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",34 "Programming Language :: Python :: 3.14",35]36dependencies = [

👷 Run tests with lower bound uv sync, update minimum dependencies (#1526)Motov Yuriibefore adoption459030e

lines 37–38why, one step back
37 "click >= 8.0.0; python_version < '3.10'",
38 "click >= 8.2.1; python_version >= '3.10'",

💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370

line 39why, one step back
39 "shellingham >=1.3.0",

👷 Run tests with lower bound uv sync, update minimum dependencies (#1526)Motov Yuriibefore adoption459030e

line 40why, one step back
40 "rich >=12.3.0",

📝 Add reference (code API) docs (#1504)Sofie Van Landeghembefore adoption2d529b2

line 41why, one step back
41 "annotated-doc >=0.0.2",

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 42–43why, one step back
42]
43readme = "README.md"

⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af

line 44why, one step back
44

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 45–51why, one step back
45[project.urls]
46Homepage = "https://github.com/fastapi/typer"47Documentation = "https://typer.tiangolo.com"48Repository = "https://github.com/fastapi/typer"49Issues = "https://github.com/fastapi/typer/issues"50Changelog = "https://typer.tiangolo.com/release-notes/"51

💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370

lines 52–53why, one step back
52[project.scripts]
53typer = "typer.cli:main"

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

line 54why, one step back
54

⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af

lines 55–58why, one step back
55[dependency-groups]
56dev = [57 { include-group = "tests" },58 { include-group = "docs" },

📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0

line 59why, one step back
59 "prek >=0.3.2",

⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af

lines 60–61why, one step back
60]
61docs = [

📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0

lines 62–72why, one step back
62 "cairosvg >=2.8.2",
63 "griffe-typingdoc >=0.3.0",64 "griffe-warnings-deprecated >=1.1.0",65 "markdown-include-variants >=0.0.8",66 "mdx-include >=1.4.1",67 "mkdocs-macros-plugin >=1.5.0",68 "mkdocs-material >=9.7.1",69 "mkdocs-redirects >=1.2.1",70 "mkdocstrings[python] >=0.30.1",71 "pillow >=11.3.0",72 "pyyaml >=5.3.1",

⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af

lines 73–74why, one step back
73]
74github-actions = [

📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0

lines 75–79why, one step back
75 "httpx >=0.27.0",
76 "pydantic >=2.5.3",77 "pydantic-settings >=2.1.0",78 "pygithub >=2.3.0",79 "smokeshow >=0.5.0",

⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af

lines 80–81why, one step back
80]
81tests = [

📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0

lines 82–84why, one step back
82 "coverage[toml] >=6.2",
83 "mypy >=1.19.1",84 "ty >=0.0.9",

👷 Run tests with lower bound uv sync, update minimum dependencies (#1526)Motov Yuriibefore adoption459030e

lines 85–87why, one step back
85 "pytest >=7.4.0",
86 "pytest-cov >=4.0.0",87 "pytest-sugar >=0.9.5",

📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0

line 88why, one step back
88 "pytest-xdist >=1.32.0",

👷 Run tests with lower bound uv sync, update minimum dependencies (#1526)Motov Yuriibefore adoption459030e

line 89why, one step back
89 "rich >=12.3.0",

📌 Update internal dependency limits (#1529)Sebastián Ramírezbefore adoption69d48e0

lines 90–91why, one step back
90 "ruff >=0.15.0",
91 "shellingham >=1.3.0",

⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af

lines 92–93why, one step back
92]
93

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 94–102why, one step back
94[tool.pdm]
95version = { source = "file", path = "typer/__init__.py" }96distribution = true9798[tool.pdm.build]99source-includes = [100 "tests/",101 "docs_src/",102 "scripts/",

⬆️ Migrate to uv (#1472)Jonathan Ehwaldbefore adoption39353af

line 103why, one step back
103]

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 104–106why, one step back
104
105[tool.tiangolo._internal-slim-build.packages.typer-slim.project]106name = "typer-slim"

💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370

lines 107–110why, one step back
107readme = "typer-slim/README.md"
108dependencies = [109 "typer",110]

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

line 111why, one step back
111optional-dependencies = {}

💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370

line 112why, one step back
112scripts = {}

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

line 113why, one step back
113

💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370

lines 114–129why, one step back
114[tool.tiangolo._internal-slim-build.packages.typer-slim.tool.pdm.build]
115# excludes needs to explicitly exclude the top level python packages,116# otherwise PDM includes them by default117# A "*" glob pattern can't be used here because in PDM internals, the patterns are put118# in a set (unordered, order varies) and each excluded file is assigned one of the119# glob patterns that matches, as the set is unordered, the matched pattern could be "*"120# independent of the order here. And then the internal code would give it a lower score121# than the one for a default included file.122# By not using "*" and explicitly excluding the top level packages, they get a higher123# score than the default inclusion124excludes = ["typer", "tests", "pdm_build.py"]125# source-includes needs to explicitly define some value because PDM will check the126# truthy value of the list, and if empty, will include some defaults, including "tests",127# an empty string doesn't match anything, but makes the list truthy, so that PDM128# doesn't override it during the build.129source-includes = [""]

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 130–137why, one step back
130
131[tool.tiangolo._internal-slim-build.packages.typer-cli.project]132name = "typer-cli"133readme = "typer-cli/README.md"134dependencies = [135 "typer",136]137optional-dependencies = {}

💥 Make `typer-slim` a shallow wrapper around `typer`, always requiring `rich` and `shellingham` (#1522)Sofie Van Landeghembefore adoptionb66a370

line 138why, one step back
138scripts = {}

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 139–178why, one step back
139
140[tool.tiangolo._internal-slim-build.packages.typer-cli.tool.pdm.build]141# excludes needs to explicitly exclude the top level python packages,142# otherwise PDM includes them by default143# A "*" glob pattern can't be used here because in PDM internals, the patterns are put144# in a set (unordered, order varies) and each excluded file is assigned one of the145# glob patterns that matches, as the set is unordered, the matched pattern could be "*"146# independent of the order here. And then the internal code would give it a lower score147# than the one for a default included file.148# By not using "*" and explicitly excluding the top level packages, they get a higher149# score than the default inclusion150excludes = ["typer", "tests", "pdm_build.py"]151# source-includes needs to explicitly define some value because PDM will check the152# truthy value of the list, and if empty, will include some defaults, including "tests",153# an empty string doesn't match anything, but makes the list truthy, so that PDM154# doesn't override it during the build.155source-includes = [""]156157[tool.pytest.ini_options]158addopts = [159 "--strict-config",160 "--strict-markers",161]162xfail_strict = true163junit_family = "xunit2"164filterwarnings = [165 "error",166 # For pytest-xdist167 'ignore::DeprecationWarning:xdist',168]169170[tool.coverage.run]171parallel = true172data_file = "coverage/.coverage"173source = [174 "docs_src",175 "tests",176 "typer"177]178omit = [

📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2

line 179why, one step back
179 "typer/_typing.py",

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 180–228why, one step back
180]
181context = '${CONTEXT}'182relative_files = true183184[tool.coverage.report]185exclude_lines = [186 "pragma: no cover",187 "@overload",188 'if __name__ == "__main__":',189 "if TYPE_CHECKING:",190]191192[tool.mypy]193strict = true194195[[tool.mypy.overrides]]196module = "docs_src.*"197disallow_incomplete_defs = false198disallow_untyped_defs = false199disallow_untyped_calls = false200201[[tool.mypy.overrides]]202module = "shellingham"203ignore_missing_imports = true204205[tool.ruff.lint]206select = [207 "E", # pycodestyle errors208 "W", # pycodestyle warnings209 "F", # pyflakes210 "I", # isort211 "B", # flake8-bugbear212 "C4", # flake8-comprehensions213 "UP", # pyupgrade214 "TID", # flake8-tidy-imports215]216ignore = [217 "E501", # line too long, handled by black218 "B008", # do not perform function calls in argument defaults219 "C901", # too complex220 "W191", # indentation contains tabs221 "TID252", # relative imports okay222]223224[tool.ruff.lint.per-file-ignores]225# "__init__.py" = ["F401"]226# rich_utils is allowed to use rich imports227"typer/rich_utils.py" = ["TID251"]228# This file is more readable without yield from

📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2

line 229why, one step back
229"docs_src/progressbar/tutorial004_py39.py" = ["UP028", "B007"]

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

line 230why, one step back
230# Default mutable data structure

📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2

lines 231–236why, one step back
231"docs_src/options_autocompletion/tutorial006_an_py39.py" = ["B006"]
232"docs_src/multiple_values/multiple_options/tutorial002_an_py39.py" = ["B006"]233"docs_src/options_autocompletion/tutorial007_an_py39.py" = ["B006"]234"docs_src/options_autocompletion/tutorial008_an_py39.py" = ["B006"]235"docs_src/options_autocompletion/tutorial009_an_py39.py" = ["B006"]236"docs_src/parameter_types/enum/tutorial003_an_py39.py" = ["B006"]

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

line 237why, one step back
237# Loop control variable `value` not used within loop body

📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2

lines 238–241why, one step back
238"docs_src/progressbar/tutorial001_py39.py" = ["B007"]
239"docs_src/progressbar/tutorial003_py39.py" = ["B007"]240"docs_src/progressbar/tutorial005_py39.py" = ["B007"]241"docs_src/progressbar/tutorial006_py39.py" = ["B007"]

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

line 242why, one step back
242# Local variable `delete` is assigned to but never used

📝 Update code examples to Python 3.9 (#1459)Motov Yuriibefore adoption51e48d2

line 243why, one step back
243"docs_src/prompt/tutorial003_py39.py" = ["F841"]

⬆ [pre-commit.ci] pre-commit autoupdate (#1394)pre-commit-ci[bot]before adoptioneff0e36

lines 244–261why, one step back
244# No need to worry about rich imports in docs
245"docs_src/*" = ["TID"]246247[tool.ruff.lint.isort]248known-third-party = ["typer", "click"]249# For docs_src/subcommands/tutorial003/250known-first-party = ["reigns", "towns", "lands", "items", "users"]251252[tool.ruff.lint.pyupgrade]253# Preserve types, even if a file imports `from __future__ import annotations`.254keep-runtime-typing = true255256[tool.ruff.lint.flake8-tidy-imports]257# Import rich_utils from within functions (lazy), not at the module level (TID253)258banned-module-level-imports = ["typer.rich_utils"]259260[tool.ruff.lint.flake8-tidy-imports.banned-api]261"rich".msg = "Use 'typer.rich_utils' instead of importing from 'rich' directly."

♻️ Refactor the handling of `shellingham` (#1347)Nathan McDougallbefore adoptionfd4241f

lines 262–265why, one step back
262"shellingham.detect_shell".msg = """\
263Use 'typer._completion_shared._get_shell_name' instead of using \264'shellingham.detect_shell' directly.265"""