Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

236 lines · 5.2 KiB · TOML

Last changed by

Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f

History of this file

Take it

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

Merge branch '8.1.x'David Lordbefore adoptionb765b12

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

Release version 8.3.2 (#3302)David Lordbefore adoptione4dbb3e

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

Merge branch '8.1.x'David Lordbefore adoptionb765b12

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"]

Merge branch '8.1.x'David Lordbefore adoptionb765b12

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",

Merge branch '8.1.x'David Lordbefore adoptionb765b12

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"

Merge branch '8.1.x'David Lordbefore adoptionb765b12

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/"

Merge branch '8.1.x'David Lordbefore adoptionb765b12

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

use uv (#2918)Rowlando13before adoption2e1c742

lines 28–53why, 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]

Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f

lines 54–58why, one step back
54tests-random = [
55 "pytest",56 "pytest-randomly",57 "pytest-xdist",58]

use uv (#2918)Rowlando13before adoption2e1c742

lines 59–64why, one step back
59typing = [
60 "mypy",61 "pyright",62 "pytest",63]64

Merge branch '8.1.x'David Lordbefore adoptionb765b12

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

Require flit-core v3.11+ to ensure license metadata in the distribution (#3070)Rowlando13before adoption1827707

line 66why, one step back
66requires = ["flit_core>=3.11,<4"]

Merge branch '8.1.x'David Lordbefore adoptionb765b12

lines 67–76why, one step back
67build-backend = "flit_core.buildapi"
6869[tool.flit.module]70name = "click"7172[tool.flit.sdist]73include = [74 "docs/",75 "tests/",76 "CHANGES.rst",

use uv (#2918)Rowlando13before adoption2e1c742

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

Merge branch '8.1.x'David Lordbefore adoptionb765b12

lines 78–82why, one step back
78]
79exclude = [80 "docs/_build/",81]82

use uv (#2918)Rowlando13before adoption2e1c742

lines 83–85why, one step back
83[tool.uv]
84default-groups = ["dev", "pre-commit", "tests", "typing"]85

Merge branch '8.1.x'David Lordbefore adoptionb765b12

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

Merge branch '8.1.x'David Lordbefore adoption73cfe12

lines 88–90why, one step back
88filterwarnings = [
89 "error",90]

`NamedTextIOWrapper`: stop closing buffer (#3139)Rowlando13before adoptionae46cfd

lines 91–94why, one step back
91markers = [
92 "stress: high-iteration stress tests for race conditions (deselect with '-m \"not stress\"')",93]94addopts = "-m 'not stress'"

Merge branch '8.1.x'David Lordbefore adoptionb765b12

lines 95–102why, one step back
95
96[tool.coverage.run]97branch = true98source = ["click", "tests"]99100[tool.coverage.paths]101source = ["src", "*/site-packages"]102

use uv (#2918)Rowlando13before adoption2e1c742

lines 103–109why, one step back
103[tool.coverage.report]
104exclude_also = [105 "if t.TYPE_CHECKING",106 "raise NotImplementedError",107 ": \\.{3}",108]109

Merge branch '8.1.x'David Lordbefore adoptionb765b12

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

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

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

use uv (#2918)Rowlando13before adoption2e1c742

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

Merge branch '8.1.x'David Lordbefore adoptionb765b12

lines 113–121why, one step back
113show_error_codes = true
114pretty = true115strict = true116117[[tool.mypy.overrides]]118module = [119 "colorama.*",120]121ignore_missing_imports = true

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

line 122why, one step back
122

Merge branch '8.1.x'David Lordbefore adoption73cfe12

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

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

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

use uv (#2918)Rowlando13before adoption2e1c742

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

Merge branch '8.1.x'David Lordbefore adoption73cfe12

lines 126–127why, one step back
126typeCheckingMode = "basic"
127

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

lines 128–132why, one step back
128[tool.ruff]
129extend-exclude = ["examples/"]130src = ["src"]131fix = true132show-fixes = true

update dev dependenciesDavid Lordbefore adoption15959d9

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

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

lines 134–142why, one step back
134
135[tool.ruff.lint]136select = [137 "B", # flake8-bugbear138 "E", # pycodestyle error139 "F", # pyflakes140 "I", # isort141 "UP", # pyupgrade142 "W", # pycodestyle warning

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

line 143why, one step back
143]

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

lines 144–147why, one step back
144
145[tool.ruff.lint.isort]146force-single-line = true147order-by-type = false

Merge branch '8.1.x'David Lordbefore adoption99015e1

line 148why, one step back
148

use uv (#2918)Rowlando13before adoption2e1c742

lines 149–150why, one step back
149[tool.tox]
150env_list = [

Add python 3.14 to test suite. (#3116)Rowlando13before adoption46c9b0b

line 151why, one step back
151 "py3.14", "py3.13", "py3.12", "py3.11", "py3.10",

Add latest free threaded python to tox and ci. (#3119)Rowlando13before adoption6707116

line 152why, one step back
152 "py3.14t",

use uv (#2918)Rowlando13before adoption2e1c742

line 153why, one step back
153 "pypy3.11",

`NamedTextIOWrapper`: stop closing buffer (#3139)Rowlando13before adoptionae46cfd

line 154why, one step back
154 "stress-py3.14", "stress-py3.14t",

use uv (#2918)Rowlando13before adoption2e1c742

lines 155–169why, one step back
155 "style",
156 "typing",157 "docs",158]159160[tool.tox.env_run_base]161description = "pytest on latest dependency versions"162runner = "uv-venv-lock-runner"163package = "wheel"164wheel_build_env = ".pkg"165constrain_package_deps = true166use_frozen_constraints = true167dependency_groups = ["tests"]168commands = [[169 "pytest", "-v", "--tb=short", "--basetemp={env_tmp_dir}",

Randomized and parallel tests (#3151)Rowlando13before adoptiona5cb82f

lines 170–178why, one step back
170 {replace = "posargs", default = [], extend = true},
171]]172173[tool.tox.env.random]174description = "randomized parallel tests to detect test pollution and race conditions"175dependency_groups = ["tests-random"]176commands = [[177 "pytest", "-v", "--tb=short", "--numprocesses=auto",178 "--basetemp={env_tmp_dir}",

`NamedTextIOWrapper`: stop closing buffer (#3139)Rowlando13before adoptionae46cfd

lines 179–188why, one step back
179 {replace = "posargs", default = [], extend = true},
180]]181182[tool.tox.env.stress]183description = "stress tests for stream lifecycle race conditions"184commands = [[185 "pytest", "-v", "--tb=short", "-x", "-m", "stress",186 "--basetemp={env_tmp_dir}",187 "--override-ini=addopts=",188 "tests/test_stream_lifecycle.py",

use uv (#2918)Rowlando13before adoption2e1c742

lines 189–202why, one step back
189 {replace = "posargs", default = [], extend = true},
190]]191192[tool.tox.env.style]193description = "run all pre-commit hooks on all files"194dependency_groups = ["pre-commit"]195skip_install = true196commands = [["pre-commit", "run", "--all-files"]]197198[tool.tox.env.typing]199description = "run static type checkers"200dependency_groups = ["typing"]201commands = [202 ["mypy"],

Make `uv run --all-extras pyright --verifytypes click` pass (#3072)Rowlando13before adoptione27b307

line 203why, one step back
203 ["pyright", "--ignoreexternal", "--verifytypes", "click"],

use uv (#2918)Rowlando13before adoption2e1c742

lines 204–236why, one step back
204]
205206[tool.tox.env.docs]207description = "build docs"208dependency_groups = ["docs"]209commands = [["sphinx-build", "-E", "-W", "-b", "dirhtml", "docs", "docs/_build/dirhtml"]]210211[tool.tox.env.docs-auto]212description = "continuously rebuild docs and start a local server"213dependency_groups = ["docs", "docs-auto"]214commands = [["sphinx-autobuild", "-W", "-b", "dirhtml", "--watch", "src", "docs", "docs/_build/dirhtml"]]215216[tool.tox.env.update-actions]217description = "update GitHub Actions pins"218labels = ["update"]219dependency_groups = ["gha-update"]220skip_install = true221commands = [["gha-update"]]222223[tool.tox.env.update-pre_commit]224description = "update pre-commit pins"225labels = ["update"]226dependency_groups = ["pre-commit"]227skip_install = true228commands = [["pre-commit", "autoupdate", "--freeze", "-j4"]]229230[tool.tox.env.update-requirements]231description = "update uv lock"232labels = ["update"]233dependency_groups = []234no_default_groups = true235skip_install = true236commands = [["uv", "lock", {replace = "posargs", default = ["-U"], extend = true}]]