pyproject.toml
This file
Path
pyproject.toml
217 lines · 6.6 KiB · TOML
Last changed by
🔧 Add PEP-639 license metadata (#1387)Sofie Van Landeghembefore adoption53e9b3c
History of this fileTake it
The walk stopped after 200 commits: lines older than ece5536 point at it.
📝 Update release notesgithub-actionsbefore adoptionece5536
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-actionsbefore adoptionece5536
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.7 (#830)Kinuaxbefore adoption8e4e4cd
line 14why, one step back14requires-python = ">=3.8"📝 Update release notesgithub-actionsbefore adoptionece5536
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.8",30 "Programming Language :: Python :: 3.9",31 "Programming Language :: Python :: 3.10",32 "Programming Language :: Python :: 3.11",33 "Programming Language :: Python :: 3.12",🔧 Add support for Python 3.13, tests in CI and add PyPI trove classifier (#1091)Edgar Ramírez Mondragónbefore adoption1332596
line 34why, one step back34 "Programming Language :: Python :: 3.13",⬆️ Add support for Python 3.14 (#1372)Sofie Van Landeghembefore adoption9e4764d
line 35why, one step back35 "Programming Language :: Python :: 3.14",📝 Update release notesgithub-actionsbefore adoptionece5536
lines 36–37why, one step back36]37dependencies = [📌 Remove pin for Click < 8.3.0 now that there's a fix for the changes (#1346)Sebastián Ramírezbefore adoptiond0406c6
line 38why, one step back38 "click >= 8.0.0",📝 Update release notesgithub-actionsbefore adoptionece5536
lines 39–167why, one step back39 "typing-extensions >= 3.7.4.3",40]41readme = "README.md"42[project.urls]43Homepage = "https://github.com/fastapi/typer"44Documentation = "https://typer.tiangolo.com"45Repository = "https://github.com/fastapi/typer"46Issues = "https://github.com/fastapi/typer/issues"47Changelog = "https://typer.tiangolo.com/release-notes/"4849[project.optional-dependencies]50standard = [51 "shellingham >=1.3.0",52 "rich >=10.11.0",53]5455[tool.pdm]56version = { source = "file", path = "typer/__init__.py" }57distribution = true5859[tool.pdm.build]60source-includes = [61 "tests/",62 "docs_src/",63 "requirements*.txt",64 "scripts/",65 ]6667[tool.tiangolo._internal-slim-build]68sync-dependencies = [69 "typer-slim[standard]",70 "typer-cli",71 "typer"72]7374[tool.tiangolo._internal-slim-build.packages.typer-slim.project]75name = "typer-slim"7677[tool.tiangolo._internal-slim-build.packages.typer]78include-optional-dependencies = ["standard"]7980[tool.tiangolo._internal-slim-build.packages.typer.project]81optional-dependencies = {}8283[tool.tiangolo._internal-slim-build.packages.typer.project.scripts]84typer = "typer.cli:main"8586[tool.tiangolo._internal-slim-build.packages.typer-cli.project]87name = "typer-cli"88readme = "typer-cli/README.md"89dependencies = [90 "typer",91]92optional-dependencies = {}9394[tool.tiangolo._internal-slim-build.packages.typer-cli.tool.pdm.build]95# excludes needs to explicitly exclude the top level python packages,96# otherwise PDM includes them by default97# A "*" glob pattern can't be used here because in PDM internals, the patterns are put98# in a set (unordered, order varies) and each excluded file is assigned one of the99# glob patterns that matches, as the set is unordered, the matched pattern could be "*"100# independent of the order here. And then the internal code would give it a lower score101# than the one for a default included file.102# By not using "*" and explicitly excluding the top level packages, they get a higher103# score than the default inclusion104excludes = ["typer", "tests", "pdm_build.py"]105# source-includes needs to explicitly define some value because PDM will check the106# truthy value of the list, and if empty, will include some defaults, including "tests",107# an empty string doesn't match anything, but makes the list truthy, so that PDM108# doesn't override it during the build.109source-includes = [""]110111[tool.pytest.ini_options]112addopts = [113 "--strict-config",114 "--strict-markers",115]116xfail_strict = true117junit_family = "xunit2"118filterwarnings = [119 "error",120 # For pytest-xdist121 'ignore::DeprecationWarning:xdist',122]123124[tool.coverage.run]125parallel = true126data_file = "coverage/.coverage"127source = [128 "docs_src",129 "tests",130 "typer"131]132omit = [133 "typer/_typing.py"134]135context = '${CONTEXT}'136relative_files = true137138[tool.coverage.report]139exclude_lines = [140 "pragma: no cover",141 "@overload",142 'if __name__ == "__main__":',143 "if TYPE_CHECKING:",144]145146[tool.mypy]147strict = true148149[[tool.mypy.overrides]]150module = "docs_src.*"151disallow_incomplete_defs = false152disallow_untyped_defs = false153disallow_untyped_calls = false154155[[tool.mypy.overrides]]156module = "shellingham"157ignore_missing_imports = true158159[tool.ruff.lint]160select = [161 "E", # pycodestyle errors162 "W", # pycodestyle warnings163 "F", # pyflakes164 "I", # isort165 "B", # flake8-bugbear166 "C4", # flake8-comprehensions167 "UP", # pyupgrade✅ Use Ruff rules to ensure safe lazy-loading of `rich` (#1297)Nathan McDougallbefore adoption661b49e
line 168why, one step back168 "TID", # flake8-tidy-imports📝 Update release notesgithub-actionsbefore adoptionece5536
lines 169–174why, one step back169]170ignore = [171 "E501", # line too long, handled by black172 "B008", # do not perform function calls in argument defaults173 "C901", # too complex174 "W191", # indentation contains tabs✅ Use Ruff rules to ensure safe lazy-loading of `rich` (#1297)Nathan McDougallbefore adoption661b49e
line 175why, one step back175 "TID252", # relative imports okay📝 Update release notesgithub-actionsbefore adoptionece5536
lines 176–179why, one step back176]177178[tool.ruff.lint.per-file-ignores]179# "__init__.py" = ["F401"]✅ Use Ruff rules to ensure safe lazy-loading of `rich` (#1297)Nathan McDougallbefore adoption661b49e
lines 180–181why, one step back180# rich_utils is allowed to use rich imports181"typer/rich_utils.py" = ["TID251"]📝 Update release notesgithub-actionsbefore adoptionece5536
lines 182–199why, one step back182# This file is more readable without yield from183"docs_src/progressbar/tutorial004.py" = ["UP028", "B007"]184# Default mutable data structure185"docs_src/options_autocompletion/tutorial006_an.py" = ["B006"]186"docs_src/multiple_values/multiple_options/tutorial002_an.py" = ["B006"]187"docs_src/options_autocompletion/tutorial007_an.py" = ["B006"]188"docs_src/options_autocompletion/tutorial008_an.py" = ["B006"]189"docs_src/options_autocompletion/tutorial009_an.py" = ["B006"]190"docs_src/parameter_types/enum/tutorial003_an.py" = ["B006"]191# Loop control variable `value` not used within loop body192"docs_src/progressbar/tutorial001.py" = ["B007"]193"docs_src/progressbar/tutorial003.py" = ["B007"]194"docs_src/progressbar/tutorial005.py" = ["B007"]195"docs_src/progressbar/tutorial006.py" = ["B007"]196# Local variable `delete` is assigned to but never used197"docs_src/prompt/tutorial003.py" = ["F841"]198# Loop control variable `x` not used within loop body199"docs_src/using_click/tutorial001.py" = ["B007"]✅ Use Ruff rules to ensure safe lazy-loading of `rich` (#1297)Nathan McDougallbefore adoption661b49e
lines 200–201why, one step back200# No need to worry about rich imports in docs201"docs_src/*" = ["TID"]📝 Update release notesgithub-actionsbefore adoptionece5536
lines 202–210why, one step back202203[tool.ruff.lint.isort]204known-third-party = ["typer", "click"]205# For docs_src/subcommands/tutorial003/206known-first-party = ["reigns", "towns", "lands", "items", "users"]207208[tool.ruff.lint.pyupgrade]209# Preserve types, even if a file imports `from __future__ import annotations`.210keep-runtime-typing = true✅ Use Ruff rules to ensure safe lazy-loading of `rich` (#1297)Nathan McDougallbefore adoption661b49e
lines 211–217why, one step back211212[tool.ruff.lint.flake8-tidy-imports]213# Import rich_utils from within functions (lazy), not at the module level (TID253)214banned-module-level-imports = ["typer.rich_utils"]215216[tool.ruff.lint.flake8-tidy-imports.banned-api]217"rich".msg = "Use 'typer.rich_utils' instead of importing from 'rich' directly."