From 6ee8a74d471d38bbc953b57bf605e71304989738 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 12 Aug 2024 16:07:15 -0700 Subject: [PATCH] style: format code with linter --- aider/analytics.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/aider/analytics.py b/aider/analytics.py index ffecf9750..3bf8e7c23 100644 --- a/aider/analytics.py +++ b/aider/analytics.py @@ -1,8 +1,10 @@ +import json import uuid from pathlib import Path -import json + from mixpanel import Mixpanel + class Analytics: def __init__(self, project_token="3f9ad6b9d7b7e8e5a1a5a9a7b0b0b0b0"): self.mp = Mixpanel(project_token) if project_token else None @@ -13,12 +15,12 @@ class Analytics: uuid_file.parent.mkdir(parents=True, exist_ok=True) if uuid_file.exists(): - with open(uuid_file, 'r') as f: - return json.load(f)['uuid'] + with open(uuid_file, "r") as f: + return json.load(f)["uuid"] new_uuid = str(uuid.uuid4()) - with open(uuid_file, 'w') as f: - json.dump({'uuid': new_uuid}, f) + with open(uuid_file, "w") as f: + json.dump({"uuid": new_uuid}, f) return new_uuid