re-run files through ruff formatter

This commit is contained in:
2025-01-20 16:29:47 +00:00
parent b5ea41c604
commit fbd4962fb2
9 changed files with 1202 additions and 1202 deletions

View File

@@ -1,14 +1,14 @@
import json
from pathlib import Path
SETTINGS = Path.cwd() / "settings.json"
SETTINGS = Path.cwd() / 'settings.json'
def config_from_json():
data = {}
if not SETTINGS.exists():
return data
with open(SETTINGS, "r") as f:
with open(SETTINGS, 'r') as f:
data = json.load(f)
return data
@@ -24,11 +24,11 @@ def get(key, default=None):
def set(key, value):
config[key] = value
with open(SETTINGS, "w") as f:
with open(SETTINGS, 'w') as f:
json.dump(config, f)
def delete(key):
del config[key]
with open(SETTINGS, "w") as f:
with open(SETTINGS, 'w') as f:
json.dump(config, f)