pyproject.toml
This file
Path
pyproject.toml
174 lines · 5.0 KiB · TOML
Last changed by
✨ Add `typer-slim` package without extras, make `typer` include `typer-slim[default]` and integrate Typer CLI (`typer` command) into Typer (#780)Sebastián Ramírezbefore adoption7d5d6bb
History of this fileTake it
The walk stopped after 200 commits: lines older than 1ebf7d1 point at it.
⬆️ Upgrade codecov GitHub Action (#420)Sebastián Ramírezbefore adoption1ebf7d1
line 1why, one step back1[build-system]🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
lines 2–3why, one step back2requires = ["pdm-backend"]3build-backend = "pdm.backend"⬆️ Upgrade codecov GitHub Action (#420)Sebastián Ramírezbefore adoption1ebf7d1
line 4why, one step back4🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
line 5why, one step back5[project]✨ Add `typer-slim` package without extras, make `typer` include `typer-slim[default]` and integrate Typer CLI (`typer` command) into Typer (#780)Sebastián Ramírezbefore adoption7d5d6bb
lines 6–8why, one step back6# pip install typer-slim: is only the Typer library, without extras7# pip install typer: is typer-slim[standard], with extras and typer-cli8name = "typer-slim"🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
lines 9–15why, 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]14readme = "README.md"15requires-python = ">=3.7"⬆️ Upgrade codecov GitHub Action (#420)Sebastián Ramírezbefore adoption1ebf7d1
lines 16–31why, one step back16classifiers = [17 "Intended Audience :: Information Technology",18 "Intended Audience :: System Administrators",19 "Operating System :: OS Independent",20 "Programming Language :: Python :: 3",21 "Programming Language :: Python",22 "Topic :: Software Development :: Libraries :: Application Frameworks",23 "Topic :: Software Development :: Libraries :: Python Modules",24 "Topic :: Software Development :: Libraries",25 "Topic :: Software Development",26 "Typing :: Typed",27 "Development Status :: 4 - Beta",28 "Intended Audience :: Developers",29 "Programming Language :: Python :: 3 :: Only",30 "Programming Language :: Python :: 3.7",31 "Programming Language :: Python :: 3.8",✨ Add support for Python 3.11, tests in CI and official marker (#487)Sebastián Ramírezbefore adoptiona6f28a7
lines 32–34why, one step back32 "Programming Language :: Python :: 3.9",33 "Programming Language :: Python :: 3.10",34 "Programming Language :: Python :: 3.11",🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
lines 35–37why, one step back35 "License :: OSI Approved :: MIT License",36]37dependencies = [🔥 Remove support for Click 7, require Click 8+ (#760)Sebastián Ramírezbefore adoption5bea9cf
line 38why, one step back38 "click >= 8.0.0",✨ Add support for PEP-593 `Annotated` for specifying options and arguments (#584)Ryan Miller Galambbefore adoption458a492
line 39why, one step back39 "typing-extensions >= 3.7.4.3",⬆️ Upgrade codecov GitHub Action (#420)Sebastián Ramírezbefore adoption1ebf7d1
lines 40–41why, one step back40]41🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
line 42why, one step back42[project.urls]⬆️ Upgrade codecov GitHub Action (#420)Sebastián Ramírezbefore adoption1ebf7d1
line 43why, one step back43Documentation = "https://typer.tiangolo.com/"🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
line 44why, one step back44homepage = "https://github.com/tiangolo/typer"⬆️ Upgrade codecov GitHub Action (#420)Sebastián Ramírezbefore adoption1ebf7d1
line 45why, one step back45🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
line 46why, one step back46[project.optional-dependencies]⬆️ Upgrade codecov GitHub Action (#420)Sebastián Ramírezbefore adoption1ebf7d1
line 47why, one step back47all = [✨ Add `typer-slim` package without extras, make `typer` include `typer-slim[default]` and integrate Typer CLI (`typer` command) into Typer (#780)Sebastián Ramírezbefore adoption7d5d6bb
lines 48–53why, one step back48 "shellingham >=1.3.0",49 "rich >=10.11.0",50]51standard = [52 "shellingham >=1.3.0",53 "rich >=10.11.0",⬆️ Upgrade codecov GitHub Action (#420)Sebastián Ramírezbefore adoption1ebf7d1
lines 54–55why, one step back54]55🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
lines 56–57why, one step back56[tool.pdm]57version = { source = "file", path = "typer/__init__.py" }🔧 Upgrade mypy and config (#768)Sebastián Ramírezbefore adoptionc1dd661
line 58why, one step back58distribution = true🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
line 59why, one step back59🔧 Explicitly include testing files in sdist for redistributors (e.g. OpenSUSE) and add CI to test redistribution (#773)Sebastián Ramírezbefore adoption0cdc31e
lines 60–67why, one step back60[tool.pdm.build]61source-includes = [62 "tests/",63 "docs_src/",64 "requirements*.txt",65 "scripts/",66 ]67⬆️ Upgrade codecov GitHub Action (#420)Sebastián Ramírezbefore adoption1ebf7d1
lines 68–75why, one step back68[tool.isort]69profile = "black"70known_third_party = ["typer", "click"]71skip_glob = [72 "docs_src/subcommands/tutorial001/main.py",73 "docs_src/subcommands/tutorial003/lands.py",74 "docs_src/subcommands/tutorial003/main.py",75 ]✨ Make `typer.run()` not add completion scripts by default, it only makes sense in installed apps (#488)Sebastián Ramírezbefore adoption36e4080
lines 76–90why, one step back7677[tool.pytest.ini_options]78addopts = [79 "--strict-config",80 "--strict-markers",81]82xfail_strict = true83junit_family = "xunit2"84filterwarnings = [85 "error",86 # TODO: until I refactor completion to use the new shell_complete87 "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",88 # For pytest-xdist89 'ignore::DeprecationWarning:xdist',90]🔧 Upgrade mypy and config (#768)Sebastián Ramírezbefore adoptionc1dd661
line 91why, one step back91⬆️ Upgrade coverage and configs (#769)Sebastián Ramírezbefore adoption71bdae1
lines 92–112why, one step back92[tool.coverage.run]93parallel = true94data_file = "coverage/.coverage"95source = [96 "docs_src",97 "tests",98 "typer"99]100omit = [101 "typer/_typing.py"102]103context = '${CONTEXT}'104105[tool.coverage.report]106exclude_lines = [107 "pragma: no cover",108 "@overload",109 'if __name__ == "__main__":',110 "if TYPE_CHECKING:",111]112🔧 Upgrade mypy and config (#768)Sebastián Ramírezbefore adoptionc1dd661
lines 113–124why, one step back113[tool.mypy]114strict = true115116[[tool.mypy.overrides]]117module = "docs_src.*"118disallow_incomplete_defs = false119disallow_untyped_defs = false120disallow_untyped_calls = false121122[[tool.mypy.overrides]]123module = "shellingham"124ignore_missing_imports = true🔧 Migrate from Black, isort, flake8, autoflake, pyupgrade to Ruff (#763)Sebastián Ramírezbefore adoption38b8e4a
lines 125–174why, one step back125126[tool.ruff.lint]127select = [128 "E", # pycodestyle errors129 "W", # pycodestyle warnings130 "F", # pyflakes131 "I", # isort132 "B", # flake8-bugbear133 "C4", # flake8-comprehensions134 "UP", # pyupgrade135]136ignore = [137 "E501", # line too long, handled by black138 "B008", # do not perform function calls in argument defaults139 "C901", # too complex140 "W191", # indentation contains tabs141]142143[tool.ruff.lint.per-file-ignores]144# "__init__.py" = ["F401"]145# This file is more readable without yield from146"docs_src/progressbar/tutorial004.py" = ["UP028", "B007"]147# Default mutable data structure148"docs_src/options_autocompletion/tutorial006_an.py" = ["B006"]149"docs_src/multiple_values/multiple_options/tutorial002_an.py" = ["B006"]150"docs_src/options_autocompletion/tutorial007_an.py" = ["B006"]151"docs_src/options_autocompletion/tutorial008_an.py" = ["B006"]152"docs_src/options_autocompletion/tutorial009_an.py" = ["B006"]153"docs_src/parameter_types/enum/tutorial003_an.py" = ["B006"]154# Loop control variable `value` not used within loop body155"docs_src/progressbar/tutorial001.py" = ["B007"]156"docs_src/progressbar/tutorial003.py" = ["B007"]157"docs_src/progressbar/tutorial005.py" = ["B007"]158"docs_src/progressbar/tutorial006.py" = ["B007"]159# Local variable `delete` is assigned to but never used160"docs_src/prompt/tutorial003.py" = ["F841"]161# Loop control variable `x` not used within loop body162"docs_src/using_click/tutorial001.py" = ["B007"]163164# TODO: refactor _typing.py, remove unnecessary code165"typer/_typing.py" = ["UP036", "F822"]166167[tool.ruff.lint.isort]168known-third-party = ["typer", "click"]169# For docs_src/subcommands/tutorial003/170known-first-party = ["reigns", "towns", "lands", "items", "users"]171172[tool.ruff.lint.pyupgrade]173# Preserve types, even if a file imports `from __future__ import annotations`.174keep-runtime-typing = true