pyproject.toml
This file
Path
pyproject.toml
204 lines · 6.3 KiB · TOML
Last changed by
🔥 Remove unused functionality from `_typing.py` file (#805)Iván Todorovichbefore adoption67a9eee
History of this fileTake it
The walk stopped after 200 commits: lines older than 7636aac point at it.
📝 Update release notesgithub-actionsbefore adoption7636aac
lines 1–40why, one step back1[build-system]2requires = ["pdm-backend"]3build-backend = "pdm.backend"45[project]6name = "typer"7dynamic = ["version"]8description = "Typer, build great CLIs. Easy to code. Based on Python type hints."9authors = [10 {name = "Sebastián Ramírez", email = "tiangolo@gmail.com"},11]12requires-python = ">=3.7"13classifiers = [14 "Intended Audience :: Information Technology",15 "Intended Audience :: System Administrators",16 "Operating System :: OS Independent",17 "Programming Language :: Python :: 3",18 "Programming Language :: Python",19 "Topic :: Software Development :: Libraries :: Application Frameworks",20 "Topic :: Software Development :: Libraries :: Python Modules",21 "Topic :: Software Development :: Libraries",22 "Topic :: Software Development",23 "Typing :: Typed",24 "Development Status :: 4 - Beta",25 "Intended Audience :: Developers",26 "Programming Language :: Python :: 3 :: Only",27 "Programming Language :: Python :: 3.7",28 "Programming Language :: Python :: 3.8",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 "License :: OSI Approved :: MIT License",34]35dependencies = [36 "click >= 8.0.0",37 "typing-extensions >= 3.7.4.3",38]39readme = "README.md"40[project.urls]🔧 Add URLs to pyproject.toml, show up in PyPI (#931)Sebastián Ramírezbefore adoption6e8c611
lines 41–45why, one step back41Homepage = "https://github.com/fastapi/typer"42Documentation = "https://typer.tiangolo.com"43Repository = "https://github.com/fastapi/typer"44Issues = "https://github.com/fastapi/typer/issues"45Changelog = "https://typer.tiangolo.com/release-notes/"📝 Update release notesgithub-actionsbefore adoption7636aac
lines 46–204why, one step back4647[project.optional-dependencies]48standard = [49 "shellingham >=1.3.0",50 "rich >=10.11.0",51]5253[tool.pdm]54version = { source = "file", path = "typer/__init__.py" }55distribution = true5657[tool.pdm.build]58source-includes = [59 "tests/",60 "docs_src/",61 "requirements*.txt",62 "scripts/",63 ]6465[tool.tiangolo._internal-slim-build]66sync-dependencies = [67 "typer-slim[standard]",68 "typer-cli",69 "typer"70]7172[tool.tiangolo._internal-slim-build.packages.typer-slim.project]73name = "typer-slim"7475[tool.tiangolo._internal-slim-build.packages.typer]76include-optional-dependencies = ["standard"]7778[tool.tiangolo._internal-slim-build.packages.typer.project]79optional-dependencies = {}8081[tool.tiangolo._internal-slim-build.packages.typer.project.scripts]82typer = "typer.cli:main"8384[tool.tiangolo._internal-slim-build.packages.typer-cli.project]85name = "typer-cli"86readme = "typer-cli/README.md"87dependencies = [88 "typer",89]90optional-dependencies = {}9192[tool.tiangolo._internal-slim-build.packages.typer-cli.tool.pdm.build]93# excludes needs to explicitly exclude the top level python packages,94# otherwise PDM includes them by default95# A "*" glob pattern can't be used here because in PDM internals, the patterns are put96# in a set (unordered, order varies) and each excluded file is assigned one of the97# glob patterns that matches, as the set is unordered, the matched pattern could be "*"98# independent of the order here. And then the internal code would give it a lower score99# than the one for a default included file.100# By not using "*" and explicitly excluding the top level packages, they get a higher101# score than the default inclusion102excludes = ["typer", "tests", "pdm_build.py"]103# source-includes needs to explicitly define some value because PDM will check the104# truthy value of the list, and if empty, will include some defaults, including "tests",105# an empty string doesn't match anything, but makes the list truthy, so that PDM106# doesn't override it during the build.107source-includes = [""]108109[tool.pytest.ini_options]110addopts = [111 "--strict-config",112 "--strict-markers",113]114xfail_strict = true115junit_family = "xunit2"116filterwarnings = [117 "error",118 # TODO: until I refactor completion to use the new shell_complete119 "ignore:'autocompletion' is renamed to 'shell_complete'. The old name is deprecated and will be removed in Click 8.1. See the docs about 'Parameter' for information about new behavior.:DeprecationWarning:typer",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", # pyupgrade168]169ignore = [170 "E501", # line too long, handled by black171 "B008", # do not perform function calls in argument defaults172 "C901", # too complex173 "W191", # indentation contains tabs174]175176[tool.ruff.lint.per-file-ignores]177# "__init__.py" = ["F401"]178# This file is more readable without yield from179"docs_src/progressbar/tutorial004.py" = ["UP028", "B007"]180# Default mutable data structure181"docs_src/options_autocompletion/tutorial006_an.py" = ["B006"]182"docs_src/multiple_values/multiple_options/tutorial002_an.py" = ["B006"]183"docs_src/options_autocompletion/tutorial007_an.py" = ["B006"]184"docs_src/options_autocompletion/tutorial008_an.py" = ["B006"]185"docs_src/options_autocompletion/tutorial009_an.py" = ["B006"]186"docs_src/parameter_types/enum/tutorial003_an.py" = ["B006"]187# Loop control variable `value` not used within loop body188"docs_src/progressbar/tutorial001.py" = ["B007"]189"docs_src/progressbar/tutorial003.py" = ["B007"]190"docs_src/progressbar/tutorial005.py" = ["B007"]191"docs_src/progressbar/tutorial006.py" = ["B007"]192# Local variable `delete` is assigned to but never used193"docs_src/prompt/tutorial003.py" = ["F841"]194# Loop control variable `x` not used within loop body195"docs_src/using_click/tutorial001.py" = ["B007"]196197[tool.ruff.lint.isort]198known-third-party = ["typer", "click"]199# For docs_src/subcommands/tutorial003/200known-first-party = ["reigns", "towns", "lands", "items", "users"]201202[tool.ruff.lint.pyupgrade]203# Preserve types, even if a file imports `from __future__ import annotations`.204keep-runtime-typing = true