Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

208 lines · 4.3 KiB · TOML

Last changed by

Merge stable into main (#3029)Rowlando13before adoption5926f83

History of this file

Take it

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 1–2why, one step back
1[project]
2name = "click"

Merge stable into main (#3029)Rowlando13before adoption5926f83

line 3why, one step back
3version = "8.2.2"

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 4why, one step back
4description = "Composable command line interface toolkit"

Merge branch '8.1.x'David Lordbefore adoption73cfe12

line 5why, one step back
5readme = "README.md"

Release version 8.2.0 (#2889)David Lordbefore adoption041aa81

lines 6–7why, one step back
6license = "BSD-3-Clause"
7license-files = ["LICENSE.txt"]

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 8–13why, one step back
8maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
9classifiers = [10 "Development Status :: 5 - Production/Stable",11 "Intended Audience :: Developers",12 "Operating System :: OS Independent",13 "Programming Language :: Python",

Merge branch '8.1.x'David Lordbefore adoption73cfe12

line 14why, one step back
14 "Typing :: Typed",

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 15why, one step back
15]

drop end of life python versions (#2893)David Lordbefore adoption498f882

line 16why, one step back
16requires-python = ">=3.10"

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 17–23why, one step back
17dependencies = [
18 "colorama; platform_system == 'Windows'",19]2021[project.urls]22Donate = "https://palletsprojects.com/donate"23Documentation = "https://click.palletsprojects.com/"

use uv (#2918)Rowlando13before adoption2e1c742

line 24why, one step back
24Changes = "https://click.palletsprojects.com/page/changes/"

Merge branch '8.1.x'David Lordbefore adoption73cfe12

line 25why, one step back
25Source = "https://github.com/pallets/click/"

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 26–27why, one step back
26Chat = "https://discord.gg/pallets"
27

use uv (#2918)Rowlando13before adoption2e1c742

lines 28–59why, one step back
28[dependency-groups]
29dev = [30 "ruff",31 "tox",32 "tox-uv",33]34docs = [35 "myst-parser",36 "pallets-sphinx-themes",37 "sphinx",38 "sphinx-tabs",39 "sphinxcontrib-log-cabinet",40]41docs-auto = [42 "sphinx-autobuild",43]44gha-update = [45 "gha-update ; python_full_version >= '3.12'",46]47pre-commit = [48 "pre-commit",49 "pre-commit-uv",50]51tests = [52 "pytest",53]54typing = [55 "mypy",56 "pyright",57 "pytest",58]59

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 60why, one step back
60[build-system]

switch to flit build backend (#2543)David Lordbefore adoption3fcf338

lines 61–62why, one step back
61requires = ["flit_core<4"]
62build-backend = "flit_core.buildapi"

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 63why, one step back
63

switch to flit build backend (#2543)David Lordbefore adoption3fcf338

lines 64–71why, one step back
64[tool.flit.module]
65name = "click"6667[tool.flit.sdist]68include = [69 "docs/",70 "tests/",71 "CHANGES.rst",

use uv (#2918)Rowlando13before adoption2e1c742

line 72why, one step back
72 "uv.lock"

switch to flit build backend (#2543)David Lordbefore adoption3fcf338

lines 73–76why, one step back
73]
74exclude = [75 "docs/_build/",76]

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 77why, one step back
77

use uv (#2918)Rowlando13before adoption2e1c742

lines 78–80why, one step back
78[tool.uv]
79default-groups = ["dev", "pre-commit", "tests", "typing"]80

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 81–82why, one step back
81[tool.pytest.ini_options]
82testpaths = ["tests"]

Merge branch '8.1.x'David Lordbefore adoption73cfe12

lines 83–85why, one step back
83filterwarnings = [
84 "error",85]

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 86–93why, one step back
86
87[tool.coverage.run]88branch = true89source = ["click", "tests"]9091[tool.coverage.paths]92source = ["src", "*/site-packages"]93

use uv (#2918)Rowlando13before adoption2e1c742

lines 94–100why, one step back
94[tool.coverage.report]
95exclude_also = [96 "if t.TYPE_CHECKING",97 "raise NotImplementedError",98 ": \\.{3}",99]100

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 101why, one step back
101[tool.mypy]

drop end of life python versions (#2893)David Lordbefore adoption498f882

line 102why, one step back
102python_version = "3.10"

use uv (#2918)Rowlando13before adoption2e1c742

line 103why, one step back
103files = ["src", "tests/typing"]

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 104–112why, one step back
104show_error_codes = true
105pretty = true106strict = true107108[[tool.mypy.overrides]]109module = [110 "colorama.*",111]112ignore_missing_imports = true

use ruff lint and format (#2658)David Lordbefore adoption1a3baf7

line 113why, one step back
113

Merge branch '8.1.x'David Lordbefore adoption73cfe12

line 114why, one step back
114[tool.pyright]

drop end of life python versions (#2893)David Lordbefore adoption498f882

line 115why, one step back
115pythonVersion = "3.10"

use uv (#2918)Rowlando13before adoption2e1c742

line 116why, one step back
116include = ["src", "tests/typing"]

Merge branch '8.1.x'David Lordbefore adoption73cfe12

lines 117–118why, one step back
117typeCheckingMode = "basic"
118

use ruff lint and format (#2658)David Lordbefore adoption1a3baf7

lines 119–123why, one step back
119[tool.ruff]
120extend-exclude = ["examples/"]121src = ["src"]122fix = true123show-fixes = true

update dev dependenciesDavid Lordbefore adoption15959d9

line 124why, one step back
124output-format = "full"

use ruff lint and format (#2658)David Lordbefore adoption1a3baf7

lines 125–133why, one step back
125
126[tool.ruff.lint]127select = [128 "B", # flake8-bugbear129 "E", # pycodestyle error130 "F", # pyflakes131 "I", # isort132 "UP", # pyupgrade133 "W", # pycodestyle warning

drop end of life python versions (#2893)David Lordbefore adoption498f882

lines 134–135why, one step back
134]
135ignore = [

use uv (#2918)Rowlando13before adoption2e1c742

line 136why, one step back
136 "UP038", # keep isinstance tuple

use ruff lint and format (#2658)David Lordbefore adoption1a3baf7

lines 137–141why, one step back
137]
138139[tool.ruff.lint.isort]140force-single-line = true141order-by-type = false

Merge branch '8.1.x'David Lordbefore adoption99015e1

line 142why, one step back
142

use uv (#2918)Rowlando13before adoption2e1c742

lines 143–208why, one step back
143[tool.tox]
144env_list = [145 "py3.13", "py3.12", "py3.11", "py3.10",146 "pypy3.11",147 "style",148 "typing",149 "docs",150]151152[tool.tox.env_run_base]153description = "pytest on latest dependency versions"154runner = "uv-venv-lock-runner"155package = "wheel"156wheel_build_env = ".pkg"157constrain_package_deps = true158use_frozen_constraints = true159dependency_groups = ["tests"]160commands = [[161 "pytest", "-v", "--tb=short", "--basetemp={env_tmp_dir}",162 {replace = "posargs", default = [], extend = true},163]]164165[tool.tox.env.style]166description = "run all pre-commit hooks on all files"167dependency_groups = ["pre-commit"]168skip_install = true169commands = [["pre-commit", "run", "--all-files"]]170171[tool.tox.env.typing]172description = "run static type checkers"173dependency_groups = ["typing"]174commands = [175 ["mypy"],176]177178[tool.tox.env.docs]179description = "build docs"180dependency_groups = ["docs"]181commands = [["sphinx-build", "-E", "-W", "-b", "dirhtml", "docs", "docs/_build/dirhtml"]]182183[tool.tox.env.docs-auto]184description = "continuously rebuild docs and start a local server"185dependency_groups = ["docs", "docs-auto"]186commands = [["sphinx-autobuild", "-W", "-b", "dirhtml", "--watch", "src", "docs", "docs/_build/dirhtml"]]187188[tool.tox.env.update-actions]189description = "update GitHub Actions pins"190labels = ["update"]191dependency_groups = ["gha-update"]192skip_install = true193commands = [["gha-update"]]194195[tool.tox.env.update-pre_commit]196description = "update pre-commit pins"197labels = ["update"]198dependency_groups = ["pre-commit"]199skip_install = true200commands = [["pre-commit", "autoupdate", "--freeze", "-j4"]]201202[tool.tox.env.update-requirements]203description = "update uv lock"204labels = ["update"]205dependency_groups = []206no_default_groups = true207skip_install = true208commands = [["uv", "lock", {replace = "posargs", default = ["-U"], extend = true}]]