Skip to content

Commit

Permalink
Bump click from 8.1.3 to 8.1.7 (#104)
Browse files Browse the repository at this point in the history
* Bump click from 8.1.3 to 8.1.7

Bumps [click](https://github.com/pallets/click) from 8.1.3 to 8.1.7.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst)
- [Commits](pallets/click@8.1.3...8.1.7)

---
updated-dependencies:
- dependency-name: click
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix types for newest click

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amethyst Reese <[email protected]>
  • Loading branch information
dependabot[bot] and amyreese authored May 19, 2024
1 parent 5c96a37 commit de3b38b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
"aioitertools==v0.11.0",
"click==8.1.3",
"click==8.1.7",
"packaging==24.0",
"rich==13.7.1",
"tomli==2.0.1",
Expand Down
14 changes: 7 additions & 7 deletions thx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import shutil
import sys
from functools import partial
from typing import Any, cast, List, Optional, Sequence
from typing import Any, List, Optional, Sequence

import click
from rich.logging import RichHandler
Expand Down Expand Up @@ -51,8 +51,8 @@ def create_command(self, name: str) -> Optional[click.Command]:
job = self.config.jobs[name]
exe = "; ".join(r for r in job.run)
desc = f"Run `{exe}`"
cb = partial(queue_job, name)
cb = click.pass_context(cb)
cbp = partial(queue_job, name)
cb = click.pass_context(cbp)
return click.Command(name, callback=cb, help=desc)
return None

Expand Down Expand Up @@ -87,13 +87,11 @@ def main(
"""
Setup options and load config
"""
group = cast(ThxGroup, main)

if live and python:
raise click.UsageError("Cannot specify both --live and --python")

ctx.ensure_object(Options)
ctx.obj.config = group.config
ctx.obj.config = main.config
ctx.obj.benchmark = benchmark
ctx.obj.debug = debug
ctx.obj.clean = clean
Expand All @@ -119,7 +117,9 @@ def main(

@main.result_callback()
@click.pass_context
def process_request(ctx: click.Context, results: Sequence[Any], **kwargs: Any) -> None:
def process_request(
ctx: click.Context, /, results: Sequence[Any], **kwargs: Any
) -> None:
"""
All click commands finished, start any jobs necessary
"""
Expand Down

0 comments on commit de3b38b

Please sign in to comment.