Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

202 lines · 6.1 KiB · TOML

Last changed by

🗑️ Deprecate `shell_complete` and continue to use `autocompletion` for CLI parameters (#974)Sofie Van Landeghembefore adoptiond8e56e2

History of this file

Take it

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

⬆ Update pytest-sugar requirement from <0.10.0,>=0.9.4 to >=0.9.4,<1.1.0 (#841)dependabot[bot]before adoption73bdd8a

lines 1–202why, one step back
1[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]41Homepage = "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/"4647[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 # For pytest-xdist119 'ignore::DeprecationWarning:xdist',120]121122[tool.coverage.run]123parallel = true124data_file = "coverage/.coverage"125source = [126 "docs_src",127 "tests",128 "typer"129]130omit = [131 "typer/_typing.py"132]133context = '${CONTEXT}'134relative_files = true135136[tool.coverage.report]137exclude_lines = [138 "pragma: no cover",139 "@overload",140 'if __name__ == "__main__":',141 "if TYPE_CHECKING:",142]143144[tool.mypy]145strict = true146147[[tool.mypy.overrides]]148module = "docs_src.*"149disallow_incomplete_defs = false150disallow_untyped_defs = false151disallow_untyped_calls = false152153[[tool.mypy.overrides]]154module = "shellingham"155ignore_missing_imports = true156157[tool.ruff.lint]158select = [159 "E", # pycodestyle errors160 "W", # pycodestyle warnings161 "F", # pyflakes162 "I", # isort163 "B", # flake8-bugbear164 "C4", # flake8-comprehensions165 "UP", # pyupgrade166]167ignore = [168 "E501", # line too long, handled by black169 "B008", # do not perform function calls in argument defaults170 "C901", # too complex171 "W191", # indentation contains tabs172]173174[tool.ruff.lint.per-file-ignores]175# "__init__.py" = ["F401"]176# This file is more readable without yield from177"docs_src/progressbar/tutorial004.py" = ["UP028", "B007"]178# Default mutable data structure179"docs_src/options_autocompletion/tutorial006_an.py" = ["B006"]180"docs_src/multiple_values/multiple_options/tutorial002_an.py" = ["B006"]181"docs_src/options_autocompletion/tutorial007_an.py" = ["B006"]182"docs_src/options_autocompletion/tutorial008_an.py" = ["B006"]183"docs_src/options_autocompletion/tutorial009_an.py" = ["B006"]184"docs_src/parameter_types/enum/tutorial003_an.py" = ["B006"]185# Loop control variable `value` not used within loop body186"docs_src/progressbar/tutorial001.py" = ["B007"]187"docs_src/progressbar/tutorial003.py" = ["B007"]188"docs_src/progressbar/tutorial005.py" = ["B007"]189"docs_src/progressbar/tutorial006.py" = ["B007"]190# Local variable `delete` is assigned to but never used191"docs_src/prompt/tutorial003.py" = ["F841"]192# Loop control variable `x` not used within loop body193"docs_src/using_click/tutorial001.py" = ["B007"]194195[tool.ruff.lint.isort]196known-third-party = ["typer", "click"]197# For docs_src/subcommands/tutorial003/198known-first-party = ["reigns", "towns", "lands", "items", "users"]199200[tool.ruff.lint.pyupgrade]201# Preserve types, even if a file imports `from __future__ import annotations`.202keep-runtime-typing = true