Skip to content
Myr

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

19 files+107 added−111 removed

modified:requirements/build.txt+2 added-2 removed
2 unmodified lines
3# by the following command:4#5# pip-compile build.in6#7build==1.0.37build==1.1.18 # via -r build.in9packaging==23.29packaging==24.010 # via build11pyproject-hooks==1.0.012 # via build
modified:requirements/dev.txt+31 added-34 removed
2 unmodified lines
3# by the following command:4#5# pip-compile dev.in6#7alabaster==0.7.137alabaster==0.7.168 # via sphinx9babel==2.14.010 # via sphinx11build==1.0.311build==1.1.112 # via pip-tools13cachetools==5.3.213cachetools==5.3.314 # via tox15certifi==2023.11.1715certifi==2024.2.216 # via requests17cfgv==3.4.018 # via pre-commit19chardet==5.2.0
5 unmodified lines
25colorama==0.4.626 # via tox27distlib==0.3.828 # via virtualenv29docutils==0.18.129docutils==0.20.130 # via31 # sphinx32 # sphinx-tabs33filelock==3.13.134 # via35 # tox36 # virtualenv37identify==2.5.3337identify==2.5.3538 # via pre-commit39idna==3.640 # via requests41imagesize==1.4.142 # via sphinx43iniconfig==2.0.044 # via pytest45jinja2==3.1.245jinja2==3.1.346 # via sphinx47markupsafe==2.1.347markupsafe==2.1.548 # via jinja249mypy==1.8.049mypy==1.9.050 # via -r typing.in51mypy-extensions==1.0.052 # via mypy53nodeenv==1.8.054 # via55 # pre-commit56 # pyright57packaging==23.257packaging==24.058 # via59 # build60 # pallets-sphinx-themes61 # pyproject-api
1 unmodified line
63 # sphinx64 # tox65pallets-sphinx-themes==2.1.166 # via -r docs.in67pip-tools==7.3.067pip-tools==7.4.168 # via -r dev.in69platformdirs==4.1.069platformdirs==4.2.070 # via71 # tox72 # virtualenv73pluggy==1.3.073pluggy==1.4.074 # via75 # pytest76 # tox77pre-commit==3.6.077pre-commit==3.6.278 # via -r dev.in79pygments==2.17.280 # via81 # sphinx82 # sphinx-tabs83pyproject-api==1.6.184 # via tox85pyproject-hooks==1.0.086 # via build87pyright==1.1.34386 # via87 # build88 # pip-tools89pyright==1.1.35590 # via -r typing.in89pytest==7.4.391pytest==8.1.192 # via -r tests.in93pyyaml==6.0.194 # via pre-commit95requests==2.31.0
5 unmodified lines
101 # -r docs.in102 # pallets-sphinx-themes103 # sphinx-issues104 # sphinx-tabs103 # sphinxcontrib-applehelp104 # sphinxcontrib-devhelp105 # sphinxcontrib-htmlhelp105 # sphinxcontrib-log-cabinet107 # sphinxcontrib-qthelp108 # sphinxcontrib-serializinghtml109sphinx-issues==3.0.1106sphinx-issues==4.0.0107 # via -r docs.in111sphinx-tabs==3.4.4108sphinx-tabs==3.4.5109 # via -r docs.in113sphinxcontrib-applehelp==1.0.7110sphinxcontrib-applehelp==1.0.8111 # via sphinx115sphinxcontrib-devhelp==1.0.5112sphinxcontrib-devhelp==1.0.6113 # via sphinx117sphinxcontrib-htmlhelp==2.0.4114sphinxcontrib-htmlhelp==2.0.5115 # via sphinx116sphinxcontrib-jsmath==1.0.1117 # via sphinx118sphinxcontrib-log-cabinet==1.0.1119 # via -r docs.in123sphinxcontrib-qthelp==1.0.6120sphinxcontrib-qthelp==1.0.7121 # via sphinx125sphinxcontrib-serializinghtml==1.1.9122sphinxcontrib-serializinghtml==1.1.10123 # via sphinx127tox==4.11.4124tox==4.14.2125 # via -r dev.in129typing-extensions==4.9.0126typing-extensions==4.10.0127 # via mypy131urllib3==2.1.0128urllib3==2.2.1129 # via requests133virtualenv==20.25.0130virtualenv==20.25.1131 # via132 # pre-commit133 # tox137wheel==0.42.0134wheel==0.43.0135 # via pip-tools136137# The following packages are considered to be unsafe in a requirements file:138# pip
1 unmodified line
modified:requirements/docs.txt+14 added-19 removed
2 unmodified lines
3# by the following command:4#5# pip-compile docs.in6#7alabaster==0.7.137alabaster==0.7.168 # via sphinx9babel==2.14.010 # via sphinx11certifi==2023.11.1711certifi==2024.2.212 # via requests13charset-normalizer==3.3.214 # via requests15docutils==0.18.115docutils==0.20.116 # via17 # sphinx18 # sphinx-tabs19idna==3.620 # via requests21imagesize==1.4.122 # via sphinx23jinja2==3.1.223jinja2==3.1.324 # via sphinx25markupsafe==2.1.325markupsafe==2.1.526 # via jinja227packaging==23.227packaging==24.028 # via29 # pallets-sphinx-themes30 # sphinx31pallets-sphinx-themes==2.1.1
11 unmodified lines
43 # -r docs.in44 # pallets-sphinx-themes45 # sphinx-issues46 # sphinx-tabs47 # sphinxcontrib-applehelp48 # sphinxcontrib-devhelp49 # sphinxcontrib-htmlhelp47 # sphinxcontrib-log-cabinet51 # sphinxcontrib-qthelp52 # sphinxcontrib-serializinghtml53sphinx-issues==3.0.148sphinx-issues==4.0.049 # via -r docs.in55sphinx-tabs==3.4.450sphinx-tabs==3.4.551 # via -r docs.in57sphinxcontrib-applehelp==1.0.752sphinxcontrib-applehelp==1.0.853 # via sphinx59sphinxcontrib-devhelp==1.0.554sphinxcontrib-devhelp==1.0.655 # via sphinx61sphinxcontrib-htmlhelp==2.0.456sphinxcontrib-htmlhelp==2.0.557 # via sphinx58sphinxcontrib-jsmath==1.0.159 # via sphinx60sphinxcontrib-log-cabinet==1.0.161 # via -r docs.in67sphinxcontrib-qthelp==1.0.662sphinxcontrib-qthelp==1.0.763 # via sphinx69sphinxcontrib-serializinghtml==1.1.964sphinxcontrib-serializinghtml==1.1.1065 # via sphinx71urllib3==2.1.066urllib3==2.2.167 # via requests
modified:requirements/tests.txt+3 added-3 removed
4 unmodified lines
5# pip-compile tests.in6#7iniconfig==2.0.08 # via pytest9packaging==23.29packaging==24.010 # via pytest11pluggy==1.3.011pluggy==1.4.012 # via pytest13pytest==7.4.313pytest==8.1.114 # via -r tests.in
modified:requirements/typing.txt+3 added-3 removed
2 unmodified lines
3# by the following command:4#5# pip-compile typing.in6#7mypy==1.8.07mypy==1.9.08 # via -r typing.in9mypy-extensions==1.0.010 # via mypy11nodeenv==1.8.012 # via pyright13pyright==1.1.34313pyright==1.1.35514 # via -r typing.in15typing-extensions==4.9.015typing-extensions==4.10.016 # via mypy1718# The following packages are considered to be unsafe in a requirements file:19# setuptools
modified:src/click/__init__.py+1 added
2 unmodified lines
3writing command line scripts fun. Unlike other modules, it's based4around a simple API that does not come with too much magic and is5composable.6"""78from __future__ import annotations910from .core import Argument as Argument11from .core import Command as Command
112 unmodified lines
modified:src/click/_termui_impl.py+1 added
1 unmodified line
2This module contains implementations for the termui module. To keep the3import time of Click down, some infrequently used functionality is4placed in this module and only imported as needed.5"""67from __future__ import annotations89import collections.abc as cabc10import contextlib
731 unmodified lines
modified:src/click/core.py+20 added-28 removed
655 unmodified lines
656 self.obj = rv = object_type()657 return rv658659 @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: ...663664 @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: ...668669 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 lines
724725 @t.overload726 def invoke(727 self, callback: t.Callable[..., V], /, *args: t.Any, **kwargs: t.Any728 ) -> V:729 ...728 ) -> V: ...729730 @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: ...732733 def invoke(734 self, callback: Command | t.Callable[..., V], /, *args: t.Any, **kwargs: t.Any735 ) -> t.Any | V:
486 unmodified lines
1222 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: ...12271228 @t.overload1229 def main(1230 self,
1 unmodified line
1232 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: ...12371238 def main(1239 self,1240 args: cabc.Sequence[str] | None = None,
288 unmodified lines
1529 _check_nested_chain(self, name, cmd, register=True)1530 self.commands[name] = cmd15311532 @t.overload1537 def command(self, __func: t.Callable[..., t.Any]) -> Command:1538 ...1533 def command(self, __func: t.Callable[..., t.Any]) -> Command: ...15341535 @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]: ...15391540 def command(1541 self, *args: t.Any, **kwargs: t.Any1542 ) -> t.Callable[[t.Callable[..., t.Any]], Command] | Command:
35 unmodified lines
15781579 return decorator15801581 @t.overload1588 def group(self, __func: t.Callable[..., t.Any]) -> Group:1589 ...1582 def group(self, __func: t.Callable[..., t.Any]) -> Group: ...15831584 @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]: ...15881589 def group(1590 self, *args: t.Any, **kwargs: t.Any1591 ) -> t.Callable[[t.Callable[..., t.Any]], Group] | Group:
546 unmodified lines
21382139 return metavar21402141 @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: ...21452146 @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: ...21502151 def get_default(2152 self, ctx: Context, call: bool = True2153 ) -> t.Any | t.Callable[[], t.Any] | None:
597 unmodified lines
27512752 return ("; " if any_prefix_is_slash else " / ").join(rv), help27532754 @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: ...27582759 @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: ...27632764 def get_default(2765 self, ctx: Context, call: bool = True2766 ) -> t.Any | t.Callable[[], t.Any] | None:
210 unmodified lines
modified:src/click/decorators.py+8 added-16 removed
133 unmodified lines
134135136# variant: no call, directly as decorator for a function.137@t.overload138def command(name: _AnyCallable) -> Command:139 ...138def command(name: _AnyCallable) -> Command: ...139140141# variant: with positional name and with positional or keyword cls argument:142# @command(namearg, CommandCls, ...) or @command(namearg, cls=CommandCls, ...)
1 unmodified line
144def command(145 name: str | None,146 cls: type[CmdType],147 **attrs: t.Any,149) -> t.Callable[[_AnyCallable], CmdType]:150 ...148) -> t.Callable[[_AnyCallable], CmdType]: ...149150151# variant: name omitted, cls _must_ be a keyword argument, @command(cls=CommandCls, ...)152@t.overload
1 unmodified line
154 name: None = None,155 *,156 cls: type[CmdType],157 **attrs: t.Any,160) -> t.Callable[[_AnyCallable], CmdType]:161 ...158) -> t.Callable[[_AnyCallable], CmdType]: ...159160161# variant: with optional string name, no cls argument provided.162@t.overload163def command(164 name: str | None = ..., cls: None = None, **attrs: t.Any168) -> t.Callable[[_AnyCallable], Command]:169 ...165) -> t.Callable[[_AnyCallable], Command]: ...166167168def command(169 name: str | _AnyCallable | None = None,
89 unmodified lines
259260261# variant: no call, directly as decorator for a function.262@t.overload267def group(name: _AnyCallable) -> Group:268 ...263def group(name: _AnyCallable) -> Group: ...264265266# variant: with positional name and with positional or keyword cls argument:267# @group(namearg, GroupCls, ...) or @group(namearg, cls=GroupCls, ...)
1 unmodified line
269def group(270 name: str | None,271 cls: type[GrpType],272 **attrs: t.Any,278) -> t.Callable[[_AnyCallable], GrpType]:279 ...273) -> t.Callable[[_AnyCallable], GrpType]: ...274275276# variant: name omitted, cls _must_ be a keyword argument, @group(cmd=GroupCls, ...)277@t.overload
1 unmodified line
279 name: None = None,280 *,281 cls: type[GrpType],282 **attrs: t.Any,289) -> t.Callable[[_AnyCallable], GrpType]:290 ...283) -> t.Callable[[_AnyCallable], GrpType]: ...284285286# variant: with optional string name, no cls argument provided.287@t.overload288def group(289 name: str | None = ..., cls: None = None, **attrs: t.Any297) -> t.Callable[[_AnyCallable], Group]:298 ...290) -> t.Callable[[_AnyCallable], Group]: ...291292293def group(294 name: str | _AnyCallable | None = None,
261 unmodified lines
modified:src/click/globals.py+2 added-4 removed
8 unmodified lines
9_local = local()101112@t.overload13def get_current_context(silent: t.Literal[False] = False) -> Context:14 ...13def get_current_context(silent: t.Literal[False] = False) -> Context: ...141516@t.overload18def get_current_context(silent: bool = ...) -> Context | None:19 ...17def get_current_context(silent: bool = ...) -> Context | None: ...181920def get_current_context(silent: bool = False) -> Context | None:21 """Returns the current click context. This can be used as a way to
46 unmodified lines
modified:src/click/parser.py+1 added
15 unmodified lines
1617Copyright 2001-2006 Gregory P. Ward. All rights reserved.18Copyright 2002-2006 Python Software Foundation. All rights reserved.19"""2021# 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 Foundation
508 unmodified lines
modified:tests/typing/typing_aliased_group.py+1 added
1"""Example from https://click.palletsprojects.com/en/8.1.x/advanced/#command-aliases"""23from __future__ import annotations45from typing_extensions import assert_type6
40 unmodified lines
modified:tests/typing/typing_confirmation_option.py+1 added
1"""From https://click.palletsprojects.com/en/8.1.x/options/#yes-parameters"""23from typing_extensions import assert_type45import click6
8 unmodified lines
modified:tests/typing/typing_options.py+1 added
1"""From https://click.palletsprojects.com/en/8.1.x/quickstart/#adding-parameters"""23from typing_extensions import assert_type45import click6
10 unmodified lines
modified:tests/typing/typing_simple_example.py+1 added
1"""The simple example from https://github.com/pallets/click#a-simple-example."""23from typing_extensions import assert_type45import click6
11 unmodified lines
modified:tests/typing/typing_version_option.py+1 added
1"""2From https://click.palletsprojects.com/en/8.1.x/options/#callbacks-and-eager-options.3"""45from typing_extensions import assert_type67import click8
8 unmodified lines
modified:.pre-commit-config.yaml+1 added-1 removed
1ci:2 autoupdate_schedule: monthly3repos: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-hooks
7 unmodified lines
modified:pyproject.toml+1 added-1 removed
74 unmodified lines
75extend-exclude = ["examples/"]76src = ["src"]77fix = true78show-fixes = true79show-source = true79output-format = "full"8081[tool.ruff.lint]82select = [83 "B", # flake8-bugbear
12 unmodified lines
modified:tox.ini+14 added
26 unmodified lines
2728[testenv:docs]29deps = -r requirements/docs.txt30commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html3132[testenv:update-requirements]33deps =34 pip-tools35 pre-commit36skip_install = true37change_dir = requirements38commands =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