From 7d2fbacd7c60fc4bf943989a49f302847f149963 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 17:40:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/repl_python_wakatime/hooks/codestats.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/repl_python_wakatime/hooks/codestats.py b/src/repl_python_wakatime/hooks/codestats.py index 26d0654..e394edd 100644 --- a/src/repl_python_wakatime/hooks/codestats.py +++ b/src/repl_python_wakatime/hooks/codestats.py @@ -137,10 +137,12 @@ def send_xp(self) -> None: # after lock is released we can send the payload utc_now = datetime.now().astimezone().isoformat() - pulse_json = json.dumps({ - "coded_at": f"{utc_now}", - "xps": xp_list, - }).encode("utf-8") + pulse_json = json.dumps( + { + "coded_at": f"{utc_now}", + "xps": xp_list, + } + ).encode("utf-8") req = Request(url=self.url, data=pulse_json, headers=headers) error = "" try: