Skip to content

Commit

Permalink
fix(deps): update dependency typer to v0.14.0 (#783)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [typer](https://redirect.github.com/fastapi/typer)
([changelog](https://typer.tiangolo.com/release-notes/)) | `==0.13.1` ->
`==0.14.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/typer/0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/typer/0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/typer/0.13.1/0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/typer/0.13.1/0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>fastapi/typer (typer)</summary>

###
[`v0.14.0`](https://redirect.github.com/fastapi/typer/releases/tag/0.14.0)

[Compare
Source](https://redirect.github.com/fastapi/typer/compare/0.13.1...0.14.0)

##### Breaking Changes

- 🔥 Remove auto naming of groups added via `add_typer` based on the
group's callback function name. PR
[#&#8203;1052](https://redirect.github.com/fastapi/typer/pull/1052) by
[@&#8203;patrick91](https://redirect.github.com/patrick91).

Before, it was supported to infer the name of a command group from the
callback function name in the sub-app, so, in this code:

```python
import typer

app = typer.Typer()
users_app = typer.Typer()

app.add_typer(users_app)

@&#8203;users_app.callback()
def users():  # <-- This was the inferred command group name
    """
    Manage users in the app.
    """

@&#8203;users_app.command()
def create(name: str):
    print(f"Creating user: {name}")
```

...the command group would be named `users`, based on the name of the
function `def users()`.

Now you need to set it explicitly:

```python
import typer

app = typer.Typer()
users_app = typer.Typer()

app.add_typer(users_app, name="users")  # <-- Explicitly set the command group name

@&#8203;users_app.callback()
def users():
    """
    Manage users in the app.
    """

@&#8203;users_app.command()
def create(name: str):
    print(f"Creating user: {name}")
```

Updated docs [SubCommand Name and
Help](https://typer.tiangolo.com/tutorial/subcommands/name-and-help/).

**Note**: this change will enable important features in the next
release. 🤩

##### Internal

- ⬆ Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.12.2. PR
[#&#8203;1043](https://redirect.github.com/fastapi/typer/pull/1043) by
[@&#8203;dependabot\[bot\]](https://redirect.github.com/apps/dependabot).
- ⬆ Bump mkdocs-material from 9.5.44 to 9.5.46. PR
[#&#8203;1062](https://redirect.github.com/fastapi/typer/pull/1062) by
[@&#8203;dependabot\[bot\]](https://redirect.github.com/apps/dependabot).
- ⬆ Bump ruff from 0.7.4 to 0.8.0. PR
[#&#8203;1059](https://redirect.github.com/fastapi/typer/pull/1059) by
[@&#8203;dependabot\[bot\]](https://redirect.github.com/apps/dependabot).
- ⬆ Bump astral-sh/setup-uv from 3 to 4. PR
[#&#8203;1061](https://redirect.github.com/fastapi/typer/pull/1061) by
[@&#8203;dependabot\[bot\]](https://redirect.github.com/apps/dependabot).
- ⬆ \[pre-commit.ci] pre-commit autoupdate. PR
[#&#8203;1053](https://redirect.github.com/fastapi/typer/pull/1053) by
[@&#8203;pre-commit-ci\[bot\]](https://redirect.github.com/apps/pre-commit-ci).

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/MartinBernstorff/Memium).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzkuMTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Nov 29, 2024
1 parent c96cf01 commit a5f1d7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [
"markdown==3.7",
"pydantic==2.10.2",
"sentry-sdk==2.19.0",
"typer==0.13.1",
"typer==0.14.0",
"tqdm==4.67.1",
"unidecode==1.3.8",
"wasabi==1.1.3",
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5f1d7f

Please sign in to comment.