diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1a80575..ca9d0de9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,14 +16,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.3 + rev: v0.9.1 hooks: - id: ruff args: [--fix, --show-fixes] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.1 hooks: - id: mypy additional_dependencies: diff --git a/src/asphalt/core/_cli.py b/src/asphalt/core/_cli.py index a67974b5..8333dd44 100644 --- a/src/asphalt/core/_cli.py +++ b/src/asphalt/core/_cli.py @@ -65,9 +65,9 @@ def run(configfile: Sequence[str], service: str | None, set_: list[str]) -> None config: dict[str, Any] = {} for path in configfile: config_data = yaml.load(path, AsphaltLoader) - assert isinstance( - config_data, dict - ), "the document root element must be a dictionary" + assert isinstance(config_data, dict), ( + "the document root element must be a dictionary" + ) config = merge_config(config, config_data) # Override config options diff --git a/src/asphalt/core/_event.py b/src/asphalt/core/_event.py index 9969ffc6..209dcc6d 100644 --- a/src/asphalt/core/_event.py +++ b/src/asphalt/core/_event.py @@ -65,8 +65,7 @@ def utc_timestamp(self) -> datetime: def __repr__(self) -> str: return ( - f"{self.__class__.__name__}(source={self.source!r}, " - f"topic={self.topic!r})" + f"{self.__class__.__name__}(source={self.source!r}, topic={self.topic!r})" )