Loading .gitlint +3 −2 Original line number Diff line number Diff line [general] ignore=body-trailing-whitespace,body-is-missing regex-style-search=True [author-valid-email] regex=.*@[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](\.[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9])+ regex=@[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9](\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])+$ [ignore-body-lines] regex=^(Fixes|Closes):?\s+#[0-9]+ regex=^(Fixes|Closes):?\s+[#][0-9]+ # vim:ft=cfg .pre-commit-config.yaml +4 −11 Original line number Diff line number Diff line Loading @@ -28,14 +28,13 @@ repos: exclude_types: [markdown, plain-text] stages: [commit, manual] # - repo: https://github.com/jorisroovers/gitlint - repo: https://github.com/hongqn/gitlint rev: v0.15.1 - repo: https://github.com/jorisroovers/gitlint rev: v0.19.1 hooks: - id: gitlint - repo: https://code.kodo.org.uk/dom/pre-commit-hooks rev: v0.6.1 rev: v0.6.2 hooks: - id: check-executable-modes - id: check-for-squash Loading @@ -57,9 +56,6 @@ repos: hooks: - id: unimport args: [--remove] types: [] types_or: [python, pyi] additional_dependencies: [libcst >=0.4.0] stages: [commit, manual] - repo: https://github.com/pycqa/isort Loading @@ -72,9 +68,6 @@ repos: rev: v3.1.0 hooks: - id: add-trailing-comma args: [--py36-plus] types: [] types_or: [python, pyi] stages: [commit, manual] - repo: https://github.com/flakeheaven/flakeheaven Loading @@ -90,7 +83,7 @@ repos: - pydocstyle[toml] - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.10.0 rev: v1.15.0 hooks: - id: mypy args: [kilter/service, tests] Loading kilter/service/runner.py +3 −4 Original line number Diff line number Diff line # Copyright 2022-2023 Dominik Sekotill <dom.sekotill@kodo.org.uk> # Copyright 2022-2023, 2025 Dominik Sekotill <dom.sekotill@kodo.org.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this Loading Loading @@ -374,9 +374,8 @@ class _TaskRunner: if isinstance(message, Macro): await session.deliver(message) continue # TODO: Upgrade and remove ignores once python/mypy#14242 is in assert isinstance(message, _VALID_EVENT_MESSAGE) # type: ignore[misc,arg-type] resp = await session.deliver(message) # type: ignore[arg-type] assert isinstance(message, _VALID_EVENT_MESSAGE) resp = await session.deliver(message) if isinstance(message, Abort): await channel.send(Continue()) await channel.aclose() Loading Loading
.gitlint +3 −2 Original line number Diff line number Diff line [general] ignore=body-trailing-whitespace,body-is-missing regex-style-search=True [author-valid-email] regex=.*@[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](\.[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9])+ regex=@[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9](\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])+$ [ignore-body-lines] regex=^(Fixes|Closes):?\s+#[0-9]+ regex=^(Fixes|Closes):?\s+[#][0-9]+ # vim:ft=cfg
.pre-commit-config.yaml +4 −11 Original line number Diff line number Diff line Loading @@ -28,14 +28,13 @@ repos: exclude_types: [markdown, plain-text] stages: [commit, manual] # - repo: https://github.com/jorisroovers/gitlint - repo: https://github.com/hongqn/gitlint rev: v0.15.1 - repo: https://github.com/jorisroovers/gitlint rev: v0.19.1 hooks: - id: gitlint - repo: https://code.kodo.org.uk/dom/pre-commit-hooks rev: v0.6.1 rev: v0.6.2 hooks: - id: check-executable-modes - id: check-for-squash Loading @@ -57,9 +56,6 @@ repos: hooks: - id: unimport args: [--remove] types: [] types_or: [python, pyi] additional_dependencies: [libcst >=0.4.0] stages: [commit, manual] - repo: https://github.com/pycqa/isort Loading @@ -72,9 +68,6 @@ repos: rev: v3.1.0 hooks: - id: add-trailing-comma args: [--py36-plus] types: [] types_or: [python, pyi] stages: [commit, manual] - repo: https://github.com/flakeheaven/flakeheaven Loading @@ -90,7 +83,7 @@ repos: - pydocstyle[toml] - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.10.0 rev: v1.15.0 hooks: - id: mypy args: [kilter/service, tests] Loading
kilter/service/runner.py +3 −4 Original line number Diff line number Diff line # Copyright 2022-2023 Dominik Sekotill <dom.sekotill@kodo.org.uk> # Copyright 2022-2023, 2025 Dominik Sekotill <dom.sekotill@kodo.org.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this Loading Loading @@ -374,9 +374,8 @@ class _TaskRunner: if isinstance(message, Macro): await session.deliver(message) continue # TODO: Upgrade and remove ignores once python/mypy#14242 is in assert isinstance(message, _VALID_EVENT_MESSAGE) # type: ignore[misc,arg-type] resp = await session.deliver(message) # type: ignore[arg-type] assert isinstance(message, _VALID_EVENT_MESSAGE) resp = await session.deliver(message) if isinstance(message, Abort): await channel.send(Continue()) await channel.aclose() Loading