update dev dependencies
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent cab9483 · Browse files · 19 files·+107 added−111 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
19 files+107 added−111 removed
- tests:+5 added−0 removed
- other:+102 added−111 removed
Provenance
- Commit
15959d9- Tree
30564d0- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
cab9483
19 files changed+107 added−111 removed
modified:requirements/build.txt+2 added-2 removed
2 unmodified lines3 # by the following command:4 #5 # pip-compile build.in6 #7-build==1.0.37+build==1.1.18 # via -r build.in9-packaging==23.29+packaging==24.010 # via build11 pyproject-hooks==1.0.012 # via buildmodified:requirements/dev.txt+31 added-34 removed
2 unmodified lines3 # by the following command:4 #5 # pip-compile dev.in6 #7-alabaster==0.7.137+alabaster==0.7.168 # via sphinx9 babel==2.14.010 # via sphinx11-build==1.0.311+build==1.1.112 # via pip-tools13-cachetools==5.3.213+cachetools==5.3.314 # via tox15-certifi==2023.11.1715+certifi==2024.2.216 # via requests17 cfgv==3.4.018 # via pre-commit19 chardet==5.2.05 unmodified lines25 colorama==0.4.626 # via tox27 distlib==0.3.828 # via virtualenv29-docutils==0.18.129+docutils==0.20.130 # via31 # sphinx32 # sphinx-tabs33 filelock==3.13.134 # via35 # tox36 # virtualenv37-identify==2.5.3337+identify==2.5.3538 # via pre-commit39 idna==3.640 # via requests41 imagesize==1.4.142 # via sphinx43 iniconfig==2.0.044 # via pytest45-jinja2==3.1.245+jinja2==3.1.346 # via sphinx47-markupsafe==2.1.347+markupsafe==2.1.548 # via jinja249-mypy==1.8.049+mypy==1.9.050 # via -r typing.in51 mypy-extensions==1.0.052 # via mypy53 nodeenv==1.8.054 # via55 # pre-commit56 # pyright57-packaging==23.257+packaging==24.058 # via59 # build60 # pallets-sphinx-themes61 # pyproject-api1 unmodified line63 # sphinx64 # tox65 pallets-sphinx-themes==2.1.166 # via -r docs.in67-pip-tools==7.3.067+pip-tools==7.4.168 # via -r dev.in69-platformdirs==4.1.069+platformdirs==4.2.070 # via71 # tox72 # virtualenv73-pluggy==1.3.073+pluggy==1.4.074 # via75 # pytest76 # tox77-pre-commit==3.6.077+pre-commit==3.6.278 # via -r dev.in79 pygments==2.17.280 # via81 # sphinx82 # sphinx-tabs83 pyproject-api==1.6.184 # via tox85 pyproject-hooks==1.0.086- # via build87-pyright==1.1.34386+ # via87+ # build88+ # pip-tools89+pyright==1.1.35590 # via -r typing.in89-pytest==7.4.391+pytest==8.1.192 # via -r tests.in93 pyyaml==6.0.194 # via pre-commit95 requests==2.31.05 unmodified lines101 # -r docs.in102 # pallets-sphinx-themes103 # sphinx-issues104 # sphinx-tabs103- # sphinxcontrib-applehelp104- # sphinxcontrib-devhelp105- # sphinxcontrib-htmlhelp105 # sphinxcontrib-log-cabinet107- # sphinxcontrib-qthelp108- # sphinxcontrib-serializinghtml109-sphinx-issues==3.0.1106+sphinx-issues==4.0.0107 # via -r docs.in111-sphinx-tabs==3.4.4108+sphinx-tabs==3.4.5109 # via -r docs.in113-sphinxcontrib-applehelp==1.0.7110+sphinxcontrib-applehelp==1.0.8111 # via sphinx115-sphinxcontrib-devhelp==1.0.5112+sphinxcontrib-devhelp==1.0.6113 # via sphinx117-sphinxcontrib-htmlhelp==2.0.4114+sphinxcontrib-htmlhelp==2.0.5115 # via sphinx116 sphinxcontrib-jsmath==1.0.1117 # via sphinx118 sphinxcontrib-log-cabinet==1.0.1119 # via -r docs.in123-sphinxcontrib-qthelp==1.0.6120+sphinxcontrib-qthelp==1.0.7121 # via sphinx125-sphinxcontrib-serializinghtml==1.1.9122+sphinxcontrib-serializinghtml==1.1.10123 # via sphinx127-tox==4.11.4124+tox==4.14.2125 # via -r dev.in129-typing-extensions==4.9.0126+typing-extensions==4.10.0127 # via mypy131-urllib3==2.1.0128+urllib3==2.2.1129 # via requests133-virtualenv==20.25.0130+virtualenv==20.25.1131 # via132 # pre-commit133 # tox137-wheel==0.42.0134+wheel==0.43.0135 # via pip-tools136 137 # The following packages are considered to be unsafe in a requirements file:138 # pip1 unmodified linemodified:requirements/docs.txt+14 added-19 removed
2 unmodified lines3 # by the following command:4 #5 # pip-compile docs.in6 #7-alabaster==0.7.137+alabaster==0.7.168 # via sphinx9 babel==2.14.010 # via sphinx11-certifi==2023.11.1711+certifi==2024.2.212 # via requests13 charset-normalizer==3.3.214 # via requests15-docutils==0.18.115+docutils==0.20.116 # via17 # sphinx18 # sphinx-tabs19 idna==3.620 # via requests21 imagesize==1.4.122 # via sphinx23-jinja2==3.1.223+jinja2==3.1.324 # via sphinx25-markupsafe==2.1.325+markupsafe==2.1.526 # via jinja227-packaging==23.227+packaging==24.028 # via29 # pallets-sphinx-themes30 # sphinx31 pallets-sphinx-themes==2.1.111 unmodified lines43 # -r docs.in44 # pallets-sphinx-themes45 # sphinx-issues46 # sphinx-tabs47- # sphinxcontrib-applehelp48- # sphinxcontrib-devhelp49- # sphinxcontrib-htmlhelp47 # sphinxcontrib-log-cabinet51- # sphinxcontrib-qthelp52- # sphinxcontrib-serializinghtml53-sphinx-issues==3.0.148+sphinx-issues==4.0.049 # via -r docs.in55-sphinx-tabs==3.4.450+sphinx-tabs==3.4.551 # via -r docs.in57-sphinxcontrib-applehelp==1.0.752+sphinxcontrib-applehelp==1.0.853 # via sphinx59-sphinxcontrib-devhelp==1.0.554+sphinxcontrib-devhelp==1.0.655 # via sphinx61-sphinxcontrib-htmlhelp==2.0.456+sphinxcontrib-htmlhelp==2.0.557 # via sphinx58 sphinxcontrib-jsmath==1.0.159 # via sphinx60 sphinxcontrib-log-cabinet==1.0.161 # via -r docs.in67-sphinxcontrib-qthelp==1.0.662+sphinxcontrib-qthelp==1.0.763 # via sphinx69-sphinxcontrib-serializinghtml==1.1.964+sphinxcontrib-serializinghtml==1.1.1065 # via sphinx71-urllib3==2.1.066+urllib3==2.2.167 # via requestsmodified:requirements/tests.txt+3 added-3 removed
4 unmodified lines5 # pip-compile tests.in6 #7 iniconfig==2.0.08 # via pytest9-packaging==23.29+packaging==24.010 # via pytest11-pluggy==1.3.011+pluggy==1.4.012 # via pytest13-pytest==7.4.313+pytest==8.1.114 # via -r tests.inmodified:requirements/typing.txt+3 added-3 removed
2 unmodified lines3 # by the following command:4 #5 # pip-compile typing.in6 #7-mypy==1.8.07+mypy==1.9.08 # via -r typing.in9 mypy-extensions==1.0.010 # via mypy11 nodeenv==1.8.012 # via pyright13-pyright==1.1.34313+pyright==1.1.35514 # via -r typing.in15-typing-extensions==4.9.015+typing-extensions==4.10.016 # via mypy17 18 # The following packages are considered to be unsafe in a requirements file:19 # setuptoolsmodified:src/click/__init__.py+1 added
2 unmodified lines3 writing command line scripts fun. Unlike other modules, it's based4 around a simple API that does not come with too much magic and is5 composable.6 """7+8 from __future__ import annotations9 10 from .core import Argument as Argument11 from .core import Command as Command112 unmodified linesmodified:src/click/_termui_impl.py+1 added
1 unmodified line2 This module contains implementations for the termui module. To keep the3 import time of Click down, some infrequently used functionality is4 placed in this module and only imported as needed.5 """6+7 from __future__ import annotations8 9 import collections.abc as cabc10 import contextlib731 unmodified linesmodified:src/click/core.py+20 added-28 removed
655 unmodified lines656 self.obj = rv = object_type()657 return rv658 659 @t.overload660- def lookup_default(self, name: str, call: t.Literal[True] = True) -> t.Any | None:661- ...660+ def lookup_default(661+ self, name: str, call: t.Literal[True] = True662+ ) -> t.Any | None: ...663 664 @t.overload665 def lookup_default(666 self, name: str, call: t.Literal[False] = ...666- ) -> t.Any | t.Callable[[], t.Any] | None:667- ...667+ ) -> t.Any | t.Callable[[], t.Any] | None: ...668 669 def lookup_default(self, name: str, call: bool = True) -> t.Any | None:670 """Get the default for a parameter from :attr:`default_map`.671 52 unmodified lines724 725 @t.overload726 def invoke(727 self, callback: t.Callable[..., V], /, *args: t.Any, **kwargs: t.Any728- ) -> V:729- ...728+ ) -> V: ...729 730 @t.overload732- def invoke(self, callback: Command, /, *args: t.Any, **kwargs: t.Any) -> t.Any:733- ...731+ def invoke(self, callback: Command, /, *args: t.Any, **kwargs: t.Any) -> t.Any: ...732 733 def invoke(734 self, callback: Command | t.Callable[..., V], /, *args: t.Any, **kwargs: t.Any735 ) -> t.Any | V:486 unmodified lines1222 prog_name: str | None = None,1223 complete_var: str | None = None,1224 standalone_mode: t.Literal[True] = True,1225 **extra: t.Any,1228- ) -> t.NoReturn:1229- ...1226+ ) -> t.NoReturn: ...1227 1228 @t.overload1229 def main(1230 self,1 unmodified line1232 prog_name: str | None = None,1233 complete_var: str | None = None,1234 standalone_mode: bool = ...,1235 **extra: t.Any,1239- ) -> t.Any:1240- ...1236+ ) -> t.Any: ...1237 1238 def main(1239 self,1240 args: cabc.Sequence[str] | None = None,288 unmodified lines1529 _check_nested_chain(self, name, cmd, register=True)1530 self.commands[name] = cmd1531 1532 @t.overload1537- def command(self, __func: t.Callable[..., t.Any]) -> Command:1538- ...1533+ def command(self, __func: t.Callable[..., t.Any]) -> Command: ...1534 1535 @t.overload1536 def command(1537 self, *args: t.Any, **kwargs: t.Any1543- ) -> t.Callable[[t.Callable[..., t.Any]], Command]:1544- ...1538+ ) -> t.Callable[[t.Callable[..., t.Any]], Command]: ...1539 1540 def command(1541 self, *args: t.Any, **kwargs: t.Any1542 ) -> t.Callable[[t.Callable[..., t.Any]], Command] | Command:35 unmodified lines1578 1579 return decorator1580 1581 @t.overload1588- def group(self, __func: t.Callable[..., t.Any]) -> Group:1589- ...1582+ def group(self, __func: t.Callable[..., t.Any]) -> Group: ...1583 1584 @t.overload1585 def group(1586 self, *args: t.Any, **kwargs: t.Any1594- ) -> t.Callable[[t.Callable[..., t.Any]], Group]:1595- ...1587+ ) -> t.Callable[[t.Callable[..., t.Any]], Group]: ...1588 1589 def group(1590 self, *args: t.Any, **kwargs: t.Any1591 ) -> t.Callable[[t.Callable[..., t.Any]], Group] | Group:546 unmodified lines2138 2139 return metavar2140 2141 @t.overload2150- def get_default(self, ctx: Context, call: t.Literal[True] = True) -> t.Any | None:2151- ...2142+ def get_default(2143+ self, ctx: Context, call: t.Literal[True] = True2144+ ) -> t.Any | None: ...2145 2146 @t.overload2147 def get_default(2148 self, ctx: Context, call: bool = ...2156- ) -> t.Any | t.Callable[[], t.Any] | None:2157- ...2149+ ) -> t.Any | t.Callable[[], t.Any] | None: ...2150 2151 def get_default(2152 self, ctx: Context, call: bool = True2153 ) -> t.Any | t.Callable[[], t.Any] | None:597 unmodified lines2751 2752 return ("; " if any_prefix_is_slash else " / ").join(rv), help2753 2754 @t.overload2763- def get_default(self, ctx: Context, call: t.Literal[True] = True) -> t.Any | None:2764- ...2755+ def get_default(2756+ self, ctx: Context, call: t.Literal[True] = True2757+ ) -> t.Any | None: ...2758 2759 @t.overload2760 def get_default(2761 self, ctx: Context, call: bool = ...2769- ) -> t.Any | t.Callable[[], t.Any] | None:2770- ...2762+ ) -> t.Any | t.Callable[[], t.Any] | None: ...2763 2764 def get_default(2765 self, ctx: Context, call: bool = True2766 ) -> t.Any | t.Callable[[], t.Any] | None:210 unmodified linesmodified:src/click/decorators.py+8 added-16 removed
133 unmodified lines134 135 136 # variant: no call, directly as decorator for a function.137 @t.overload138-def command(name: _AnyCallable) -> Command:139- ...138+def command(name: _AnyCallable) -> Command: ...139 140 141 # variant: with positional name and with positional or keyword cls argument:142 # @command(namearg, CommandCls, ...) or @command(namearg, cls=CommandCls, ...)1 unmodified line144 def command(145 name: str | None,146 cls: type[CmdType],147 **attrs: t.Any,149-) -> t.Callable[[_AnyCallable], CmdType]:150- ...148+) -> t.Callable[[_AnyCallable], CmdType]: ...149 150 151 # variant: name omitted, cls _must_ be a keyword argument, @command(cls=CommandCls, ...)152 @t.overload1 unmodified line154 name: None = None,155 *,156 cls: type[CmdType],157 **attrs: t.Any,160-) -> t.Callable[[_AnyCallable], CmdType]:161- ...158+) -> t.Callable[[_AnyCallable], CmdType]: ...159 160 161 # variant: with optional string name, no cls argument provided.162 @t.overload163 def command(164 name: str | None = ..., cls: None = None, **attrs: t.Any168-) -> t.Callable[[_AnyCallable], Command]:169- ...165+) -> t.Callable[[_AnyCallable], Command]: ...166 167 168 def command(169 name: str | _AnyCallable | None = None,89 unmodified lines259 260 261 # variant: no call, directly as decorator for a function.262 @t.overload267-def group(name: _AnyCallable) -> Group:268- ...263+def group(name: _AnyCallable) -> Group: ...264 265 266 # variant: with positional name and with positional or keyword cls argument:267 # @group(namearg, GroupCls, ...) or @group(namearg, cls=GroupCls, ...)1 unmodified line269 def group(270 name: str | None,271 cls: type[GrpType],272 **attrs: t.Any,278-) -> t.Callable[[_AnyCallable], GrpType]:279- ...273+) -> t.Callable[[_AnyCallable], GrpType]: ...274 275 276 # variant: name omitted, cls _must_ be a keyword argument, @group(cmd=GroupCls, ...)277 @t.overload1 unmodified line279 name: None = None,280 *,281 cls: type[GrpType],282 **attrs: t.Any,289-) -> t.Callable[[_AnyCallable], GrpType]:290- ...283+) -> t.Callable[[_AnyCallable], GrpType]: ...284 285 286 # variant: with optional string name, no cls argument provided.287 @t.overload288 def group(289 name: str | None = ..., cls: None = None, **attrs: t.Any297-) -> t.Callable[[_AnyCallable], Group]:298- ...290+) -> t.Callable[[_AnyCallable], Group]: ...291 292 293 def group(294 name: str | _AnyCallable | None = None,261 unmodified linesmodified:src/click/globals.py+2 added-4 removed
8 unmodified lines9 _local = local()10 11 12 @t.overload13-def get_current_context(silent: t.Literal[False] = False) -> Context:14- ...13+def get_current_context(silent: t.Literal[False] = False) -> Context: ...14 15 16 @t.overload18-def get_current_context(silent: bool = ...) -> Context | None:19- ...17+def get_current_context(silent: bool = ...) -> Context | None: ...18 19 20 def get_current_context(silent: bool = False) -> Context | None:21 """Returns the current click context. This can be used as a way to46 unmodified linesmodified:src/click/parser.py+1 added
15 unmodified lines16 17 Copyright 2001-2006 Gregory P. Ward. All rights reserved.18 Copyright 2002-2006 Python Software Foundation. All rights reserved.19 """20+21 # This code uses parts of optparse written by Gregory P. Ward and22 # maintained by the Python Software Foundation.23 # Copyright 2001-2006 Gregory P. Ward24 # Copyright 2002-2006 Python Software Foundation508 unmodified linesmodified:tests/typing/typing_aliased_group.py+1 added
1 """Example from https://click.palletsprojects.com/en/8.1.x/advanced/#command-aliases"""2+3 from __future__ import annotations4 5 from typing_extensions import assert_type6 40 unmodified linesmodified:tests/typing/typing_confirmation_option.py+1 added
1 """From https://click.palletsprojects.com/en/8.1.x/options/#yes-parameters"""2+3 from typing_extensions import assert_type4 5 import click6 8 unmodified linesmodified:tests/typing/typing_options.py+1 added
1 """From https://click.palletsprojects.com/en/8.1.x/quickstart/#adding-parameters"""2+3 from typing_extensions import assert_type4 5 import click6 10 unmodified linesmodified:tests/typing/typing_simple_example.py+1 added
1 """The simple example from https://github.com/pallets/click#a-simple-example."""2+3 from typing_extensions import assert_type4 5 import click6 11 unmodified linesmodified:tests/typing/typing_version_option.py+1 added
1 """2 From https://click.palletsprojects.com/en/8.1.x/options/#callbacks-and-eager-options.3 """4+5 from typing_extensions import assert_type6 7 import click8 8 unmodified linesmodified:.pre-commit-config.yaml+1 added-1 removed
1 ci:2 autoupdate_schedule: monthly3 repos:4 - repo: https://github.com/astral-sh/ruff-pre-commit5- rev: v0.1.95+ rev: v0.3.46 hooks:7 - id: ruff8 - id: ruff-format9 - repo: https://github.com/pre-commit/pre-commit-hooks7 unmodified linesmodified:pyproject.toml+1 added-1 removed
74 unmodified lines75 extend-exclude = ["examples/"]76 src = ["src"]77 fix = true78 show-fixes = true79-show-source = true79+output-format = "full"80 81 [tool.ruff.lint]82 select = [83 "B", # flake8-bugbear12 unmodified linesmodified:tox.ini+14 added
26 unmodified lines27 28 [testenv:docs]29 deps = -r requirements/docs.txt30 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html31+32+[testenv:update-requirements]33+deps =34+ pip-tools35+ pre-commit36+skip_install = true37+change_dir = requirements38+commands =39+ pre-commit autoupdate -j440+ pip-compile -U build.in41+ pip-compile -U docs.in42+ pip-compile -U tests.in43+ pip-compile -U typing.in44+ pip-compile -U dev.in