From 82d2a4d6a7c8b5a252ba29890d082bfbe1218b12 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 20:10:48 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) - [github.com/editorconfig-checker/editorconfig-checker.python: 3.0.3 → 3.2.1](https://github.com/editorconfig-checker/editorconfig-checker.python/compare/3.0.3...3.2.1) - [github.com/adrienverge/yamllint: v1.35.1 → v1.37.1](https://github.com/adrienverge/yamllint/compare/v1.35.1...v1.37.1) - [github.com/executablebooks/mdformat: 0.7.19 → 0.7.22](https://github.com/executablebooks/mdformat/compare/0.7.19...0.7.22) - [github.com/DavidAnson/markdownlint-cli2: v0.16.0 → v0.18.1](https://github.com/DavidAnson/markdownlint-cli2/compare/v0.16.0...v0.18.1) - [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.11.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.2...v0.11.13) - [github.com/kumaraditya303/mirrors-pyright: v1.1.390 → v1.1.401](https://github.com/kumaraditya303/mirrors-pyright/compare/v1.1.390...v1.1.401) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4d2c3c9..7dbd713 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: hooks: - id: remove-crlf - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell additional_dependencies: @@ -37,7 +37,7 @@ repos: args: - --msg-filename - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 3.0.3 + rev: 3.2.1 hooks: - id: editorconfig-checker - repo: https://github.com/jumanjihouse/pre-commit-hooks @@ -45,11 +45,11 @@ repos: hooks: - id: check-mailmap - repo: https://github.com/adrienverge/yamllint - rev: v1.35.1 + rev: v1.37.1 hooks: - id: yamllint - repo: https://github.com/executablebooks/mdformat - rev: 0.7.19 + rev: 0.7.22 hooks: - id: mdformat additional_dependencies: @@ -63,18 +63,18 @@ repos: - mdformat-config - mdformat-web - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.16.0 + rev: v0.18.1 hooks: - id: markdownlint-cli2 additional_dependencies: - markdown-it-texmath - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.2 + rev: v0.11.13 hooks: - id: ruff - id: ruff-format - repo: https://github.com/kumaraditya303/mirrors-pyright - rev: v1.1.390 + rev: v1.1.401 hooks: - id: pyright From bacc27cad9ae9a8d0dc4be6b9edd8f371cbf2a0f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 20:10:59 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 1 + src/tmux_bitahub/__init__.py | 1 + src/tmux_bitahub/__main__.py | 1 + tests/bitahub_test.py | 1 + 4 files changed, 4 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 084f9bc..9d683ae 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,6 +2,7 @@ https://www.sphinx-doc.org/en/master/usage/configuration.html """ + from tmux_bitahub import __version__ as version # type: ignore from tmux_bitahub._metainfo import author, copyright, project # type: ignore diff --git a/src/tmux_bitahub/__init__.py b/src/tmux_bitahub/__init__.py index f82cc6d..262045f 100644 --- a/src/tmux_bitahub/__init__.py +++ b/src/tmux_bitahub/__init__.py @@ -1,4 +1,5 @@ """Get bitahub status.""" + from typing import List, Literal from urllib import request diff --git a/src/tmux_bitahub/__main__.py b/src/tmux_bitahub/__main__.py index beea191..edbec65 100755 --- a/src/tmux_bitahub/__main__.py +++ b/src/tmux_bitahub/__main__.py @@ -1,6 +1,7 @@ r"""This module can be called by `python -m `_. """ + from shlex import split from subprocess import check_output # nosec: B404 from typing import Callable diff --git a/tests/bitahub_test.py b/tests/bitahub_test.py index d2d6fcf..ac77f46 100644 --- a/tests/bitahub_test.py +++ b/tests/bitahub_test.py @@ -1,4 +1,5 @@ """bitahub_test.""" + from tmux_bitahub import get_result # type: ignore