From 4881bd8b4fb2ff3e7a859f24f96d8a0949acd728 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 17:39:32 +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/Lucas-C/pre-commit-hooks: v1.5.5 → v1.5.6](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.5...v1.5.6) - [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.10](https://github.com/rhysd/actionlint/compare/v1.7.7...v1.7.10) - [github.com/adrienverge/yamllint: v1.37.1 → v1.38.0](https://github.com/adrienverge/yamllint/compare/v1.37.1...v1.38.0) - [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.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.1...v0.14.13) - [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 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b3b7ad..813dad6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: check-toml - id: check-json - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.5 + rev: v1.5.6 hooks: - id: remove-crlf - repo: https://github.com/codespell-project/codespell @@ -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,15 +47,15 @@ repos: hooks: - id: check-mailmap - repo: https://github.com/rhysd/actionlint - rev: v1.7.7 + rev: v1.7.10 hooks: - id: actionlint - repo: https://github.com/adrienverge/yamllint - rev: v1.37.1 + rev: v1.38.0 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.13 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 e153a9bb7abc73f3139caf722d6effe94bb94b64 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 17:39:44 +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."""