Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

230 lines · 6.0 KiB · TOML

Last changed by

👷 Speed up the CI by shuffling the test matrix (#1815)Sofie Van Landeghembefore adoption2e9bf9e

History of this file

Take it

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

⬆ Bump ruff from 0.15.8 to 0.15.9 (#1674)dependabot[bot]before adoption462f3ee

lines 1–36why, 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]14requires-python = ">=3.10"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.10",30 "Programming Language :: Python :: 3.11",31 "Programming Language :: Python :: 3.12",32 "Programming Language :: Python :: 3.13",33 "Programming Language :: Python :: 3.14",34]35dependencies = [36 "shellingham >=1.3.0",

🚸 Don't truncate code lines in traceback when formatted with Rich (#1695)Motov Yuriibefore adoptiondfb21ad

line 37why, one step back
37 "rich >=13.8.0",

⬆ Bump ruff from 0.15.8 to 0.15.9 (#1674)dependabot[bot]before adoption462f3ee

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

➖ Vendor Click and streamline Typer's functionality and code base (#1774)Sofie Van Landeghembefore adoption1829d73

line 39why, one step back
39 "colorama; platform_system == 'Windows'",

⬆ Bump ruff from 0.15.8 to 0.15.9 (#1674)dependabot[bot]before adoption462f3ee

lines 40–57why, one step back
40]
41readme = "README.md"4243[project.urls]44Homepage = "https://github.com/fastapi/typer"45Documentation = "https://typer.tiangolo.com"46Repository = "https://github.com/fastapi/typer"47Issues = "https://github.com/fastapi/typer/issues"48Changelog = "https://typer.tiangolo.com/release-notes/"4950[project.scripts]51typer = "typer.cli:main"5253[dependency-groups]54dev = [55 { include-group = "tests" },56 { include-group = "docs" },57 "prek >=0.3.2",

🔒️ Add zizmor and fix audit findings (#1705)Yurii Motovbefore adoption86a96f8

line 58why, one step back
58 "zizmor >=1.23.1",

⬆ Bump ruff from 0.15.8 to 0.15.9 (#1674)dependabot[bot]before adoption462f3ee

lines 59–65why, one step back
59]
60docs = [61 "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",

⬆️ Migrate to Zensical (#1470)Sebastián Ramírezbefore adoptionf655ef2

line 66why, one step back
66 "mkdocstrings[python] >=1.0.3",

⬆ Bump ruff from 0.15.8 to 0.15.9 (#1674)dependabot[bot]before adoption462f3ee

lines 67–68why, one step back
67 "pillow >=11.3.0",
68 "pyyaml >=5.3.1",

⬆️ Migrate to Zensical (#1470)Sebastián Ramírezbefore adoptionf655ef2

line 69why, one step back
69 "zensical>=0.0.42",

⬆ Bump ruff from 0.15.8 to 0.15.9 (#1674)dependabot[bot]before adoption462f3ee

lines 70–82why, one step back
70]
71github-actions = [72 "httpx >=0.27.0",73 "pydantic >=2.5.3",74 "pydantic-settings >=2.1.0",75 "pygithub >=2.3.0",76 "smokeshow >=0.5.0",77]78tests = [79 "coverage[toml] >=7.13",80 "mypy >=1.19.1",81 "ty >=0.0.25",82 "pytest >=9.0.0",

👷 Speed up the CI by shuffling the test matrix (#1815)Sofie Van Landeghembefore adoption2e9bf9e

lines 83–85why, one step back
83 "pytest-cov >=7.0.0",
84 "pytest-sugar >=1.0.0",85 "pytest-xdist >=3.6.1",

⬆ Bump ruff from 0.15.8 to 0.15.9 (#1674)dependabot[bot]before adoption462f3ee

lines 86–191why, one step back
86 "rich >=12.3.0",
87 "ruff >=0.15.0",88 "shellingham >=1.3.0",89]9091[tool.pdm]92version = { source = "file", path = "typer/__init__.py" }93distribution = true9495[tool.pdm.build]96source-includes = [97 "tests/",98 "docs_src/",99 "scripts/",100]101102[tool.pytest]103minversion = "9.0"104addopts = [105 "--strict-config",106 "--strict-markers",107]108strict_xfail = true109filterwarnings = [110 "error",111 # For pytest-xdist112 'ignore::DeprecationWarning:xdist',113]114115[tool.coverage.run]116parallel = true117data_file = "coverage/.coverage"118source = [119 "docs_src",120 "tests",121 "typer"122]123omit = [124 "typer/_typing.py",125]126context = '${CONTEXT}'127relative_files = true128129[tool.coverage.report]130exclude_lines = [131 "pragma: no cover",132 "@overload",133 'if __name__ == "__main__":',134 "if TYPE_CHECKING:",135]136137[tool.mypy]138strict = true139140[[tool.mypy.overrides]]141module = "docs_src.*"142disallow_incomplete_defs = false143disallow_untyped_defs = false144disallow_untyped_calls = false145146[[tool.mypy.overrides]]147module = "shellingham"148ignore_missing_imports = true149150[tool.ruff.lint]151select = [152 "E", # pycodestyle errors153 "W", # pycodestyle warnings154 "F", # pyflakes155 "I", # isort156 "B", # flake8-bugbear157 "C4", # flake8-comprehensions158 "UP", # pyupgrade159 "TID", # flake8-tidy-imports160]161ignore = [162 "E501", # line too long, handled by black163 "B008", # do not perform function calls in argument defaults164 "C901", # too complex165 "TID252", # relative imports okay166]167168[tool.ruff.lint.per-file-ignores]169# "__init__.py" = ["F401"]170# rich_utils is allowed to use rich imports171"typer/rich_utils.py" = ["TID251"]172# This file is more readable without yield from173"docs_src/progressbar/tutorial004_py310.py" = ["UP028", "B007"]174# Default mutable data structure175"docs_src/options_autocompletion/tutorial006_an_py310.py" = ["B006"]176"docs_src/multiple_values/multiple_options/tutorial002_an_py310.py" = ["B006"]177"docs_src/options_autocompletion/tutorial007_an_py310.py" = ["B006"]178"docs_src/options_autocompletion/tutorial008_an_py310.py" = ["B006"]179"docs_src/options_autocompletion/tutorial009_an_py310.py" = ["B006"]180"docs_src/parameter_types/enum/tutorial003_an_py310.py" = ["B006"]181# Loop control variable `value` not used within loop body182"docs_src/progressbar/tutorial001_py310.py" = ["B007"]183"docs_src/progressbar/tutorial003_py310.py" = ["B007"]184"docs_src/progressbar/tutorial005_py310.py" = ["B007"]185"docs_src/progressbar/tutorial006_py310.py" = ["B007"]186# Local variable `delete` is assigned to but never used187"docs_src/prompt/tutorial003_py310.py" = ["F841"]188# No need to worry about rich imports in docs189"docs_src/*" = ["TID"]190191[tool.ruff.lint.isort]

➖ Vendor Click and streamline Typer's functionality and code base (#1774)Sofie Van Landeghembefore adoption1829d73

line 192why, one step back
192known-third-party = ["typer"]

⬆ Bump ruff from 0.15.8 to 0.15.9 (#1674)dependabot[bot]before adoption462f3ee

lines 193–212why, one step back
193# For docs_src/subcommands/tutorial003/
194known-first-party = ["reigns", "towns", "lands", "items", "users"]195196[tool.ruff.lint.pyupgrade]197# Preserve types, even if a file imports `from __future__ import annotations`.198keep-runtime-typing = true199200[tool.ruff.lint.flake8-tidy-imports]201# Import rich_utils from within functions (lazy), not at the module level (TID253)202banned-module-level-imports = ["typer.rich_utils"]203204[tool.ruff.lint.flake8-tidy-imports.banned-api]205"rich".msg = "Use 'typer.rich_utils' instead of importing from 'rich' directly."206"shellingham.detect_shell".msg = """\207Use 'typer._completion_shared._get_shell_name' instead of using \208'shellingham.detect_shell' directly.209"""210211[tool.ty.terminal]212error-on-warning = true

👷 Add pre-commit for typos (#1730)Sebastián Ramírezbefore adoption612a635

lines 213–230why, one step back
213
214[tool.typos.files]215extend-exclude = [216 "coverage/",217 "dist/",218 "docs/img/",219 "docs/release-notes.md",220 "htmlcov/",221 "site/",222 "site_build/",223 "uv.lock",224]225226[tool.typos.default.extend-identifiers]227alls = "alls"228229[tool.typos.default.extend-words]230Ines = "Ines"