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 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."""