From 5faae899b5cb1ac4600af4fac65eba73f408838a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 17:38:26 +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/editorconfig-checker/editorconfig-checker.python: 3.4.0 → 3.6.0](https://github.com/editorconfig-checker/editorconfig-checker.python/compare/3.4.0...3.6.0) - [github.com/rhysd/actionlint: v1.7.7 → v1.7.9](https://github.com/rhysd/actionlint/compare/v1.7.7...v1.7.9) - [github.com/executablebooks/mdformat: 0.7.22 → 1.0.0](https://github.com/executablebooks/mdformat/compare/0.7.22...1.0.0) - [github.com/DavidAnson/markdownlint-cli2: v0.18.1 → v0.20.0](https://github.com/DavidAnson/markdownlint-cli2/compare/v0.18.1...v0.20.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.1 → v0.14.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.1...v0.14.8) - [github.com/kumaraditya303/mirrors-pyright: v1.1.406 → v1.1.407](https://github.com/kumaraditya303/mirrors-pyright/compare/v1.1.406...v1.1.407) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b3b7ad..1993b9b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: args: - --msg-filename - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 3.4.0 + rev: 3.6.0 hooks: - id: editorconfig-checker - repo: https://github.com/jumanjihouse/pre-commit-hooks @@ -47,7 +47,7 @@ repos: hooks: - id: check-mailmap - repo: https://github.com/rhysd/actionlint - rev: v1.7.7 + rev: v1.7.9 hooks: - id: actionlint - repo: https://github.com/adrienverge/yamllint @@ -55,7 +55,7 @@ repos: hooks: - id: yamllint - repo: https://github.com/executablebooks/mdformat - rev: 0.7.22 + rev: 1.0.0 hooks: - id: mdformat additional_dependencies: @@ -69,18 +69,18 @@ repos: - mdformat-config - mdformat-web - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.18.1 + rev: v0.20.0 hooks: - id: markdownlint-cli2 additional_dependencies: - markdown-it-texmath - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.1 + rev: v0.14.8 hooks: - id: ruff-check - id: ruff-format - repo: https://github.com/kumaraditya303/mirrors-pyright - rev: v1.1.406 + rev: v1.1.407 hooks: - id: pyright From e9c67077d08e196adbc2ca683853aeda6adf8c9a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 17:39:23 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/repl_python_wakatime/backends/codestats.py | 4 +--- src/repl_python_wakatime/backends/wakatime.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/repl_python_wakatime/backends/codestats.py b/src/repl_python_wakatime/backends/codestats.py index bef03ac..97e76bf 100644 --- a/src/repl_python_wakatime/backends/codestats.py +++ b/src/repl_python_wakatime/backends/codestats.py @@ -45,9 +45,7 @@ def __post_init__(self) -> None: self.headers = { "Content-Type": "application/json", "User-Agent": f"{self.plugin}/{__version__}", - "X-API-Token": keyring.get_password( - self.service_name, self.user_name - ), + "X-API-Token": keyring.get_password(self.service_name, self.user_name), "Accept": "*/*", } if not self.headers["X-API-Token"]: diff --git a/src/repl_python_wakatime/backends/wakatime.py b/src/repl_python_wakatime/backends/wakatime.py index 48f5c4e..6af5b55 100644 --- a/src/repl_python_wakatime/backends/wakatime.py +++ b/src/repl_python_wakatime/backends/wakatime.py @@ -25,9 +25,7 @@ def __post_init__(self): @staticmethod def get_wakatime_args(args: dict[str, str]) -> list[str]: - return ["wakatime-cli", "--write"] + [ - f"--{k}={v}" for k, v in args.items() - ] + return ["wakatime-cli", "--write"] + [f"--{k}={v}" for k, v in args.items()] def __call__(self) -> None: """Send wakatime heartbeat."""