Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #171

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
# Ruff is a code style and formatter
# It works on files in-place
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.4
rev: v0.5.5
hooks:
- id: ruff
args:
Expand All @@ -51,7 +51,7 @@ repos:
# Pyupgrade is a code upgrade tool
# It works on files in-place
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py310-plus]
Expand Down
4 changes: 2 additions & 2 deletions entities_service/cli/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
ALIASED_COMMANDS: dict[str, str] = {}


def get_commands() -> Generator[tuple[Callable, dict[str, Any]], None, None]:
def get_commands() -> Generator[tuple[Callable, dict[str, Any]]]:
"""Return all CLI commands, along with typer.command() kwargs.

It is important the command module name matches the command function name.
Expand Down Expand Up @@ -55,7 +55,7 @@ def get_commands() -> Generator[tuple[Callable, dict[str, Any]], None, None]:
yield getattr(module, path.stem), command_kwargs


def get_subtyper_apps() -> Generator[tuple[Typer, dict[str, Any]], None, None]:
def get_subtyper_apps() -> Generator[tuple[Typer, dict[str, Any]]]:
"""Return all CLI Typer apps, which are a group of sub-command groups, along with
typer.add_typer() kwargs.

Expand Down
2 changes: 1 addition & 1 deletion entities_service/cli/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ConfigFields(StrEnum):
ConfigFields[config_name.upper()] = config_name.lower()

@classmethod
def autocomplete(cls, incomplete: str) -> Generator[tuple[str, str], None, None]:
def autocomplete(cls, incomplete: str) -> Generator[tuple[str, str]]:
"""Return a list of valid configuration options."""
for member in cls:
if member.value.startswith(incomplete):
Expand Down
2 changes: 1 addition & 1 deletion entities_service/service/routers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from fastapi import APIRouter


def get_routers() -> Generator[APIRouter, None, None]:
def get_routers() -> Generator[APIRouter]:
"""Get the routers."""
this_dir = Path(__file__).parent.resolve()

Expand Down