Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ 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
rev: 3.0.0
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
rev: v1.37.1
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -69,18 +69,18 @@ repos:
- mdformat-config
- mdformat-web
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.18.1
rev: v0.19.1
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.7
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

Expand Down
4 changes: 1 addition & 3 deletions src/repl_python_wakatime/backends/codestats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down
4 changes: 1 addition & 3 deletions src/repl_python_wakatime/backends/wakatime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down