Skip to content
Myr

⬆ Bump ruff from 0.8.6 to 0.9.1 (#1118)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* ⬆ Bump ruff from 0.8.6 to 0.9.1 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.8.6 to 0.9.1. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.8.6...0.9.1) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * format main with ruff 0.9.1 * 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks * ensure precommit version is consistent * 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: svlandeg <svlandeg@github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

authored by dependabot[bot] · committed by GitHub · parent 39ae7e7 · Browse files · 3 files+11 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+11 added−11 removed

  • other:+11 added−11 removed

3 files+11 added−11 removed

modified:typer/main.py+9 added-9 removed
471 unmodified lines
472 *,473 pretty_exceptions_short: bool,474 rich_markup_mode: MarkupMode,475) -> TyperGroup:476 assert (477 group_info.typer_instance478 ), "A Typer instance is needed to generate a Click Group"476 assert group_info.typer_instance, (477 "A Typer instance is needed to generate a Click Group"478 )479 commands: Dict[str, click.Command] = {}480 for command_info in group_info.typer_instance.registered_commands:481 command = get_command_from_info(482 command_info=command_info,
363 unmodified lines
846 origin = get_origin(main_type)847 # Handle Tuples and Lists848 if lenient_issubclass(origin, List):849 main_type = get_args(main_type)[0]850 assert not get_origin(851 main_type852 ), "List types with complex sub-types are not currently supported"850 assert not get_origin(main_type), (851 "List types with complex sub-types are not currently supported"852 )853 is_list = True854 elif lenient_issubclass(origin, Tuple): # type: ignore855 types = []856 for type_ in get_args(main_type):857 assert not get_origin(858 type_859 ), "Tuple types with complex sub-types are not currently supported"857 assert not get_origin(type_), (858 "Tuple types with complex sub-types are not currently supported"859 )860 types.append(861 get_click_type(annotation=type_, parameter_info=parameter_info)862 )863 parameter_type = tuple(types)
276 unmodified lines
modified:.pre-commit-config.yaml+1 added-1 removed
modified:requirements-tests.txt+1 added-1 removed
4 unmodified lines
5coverage[toml] >=6.2,<8.06pytest-xdist >=1.32.0,<4.0.07pytest-sugar >=0.9.4,<1.1.08mypy ==1.4.19ruff ==0.8.69ruff ==0.9.110# Needed explicitly by typer-slim11rich >=10.11.012shellingham >=1.3.0