mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2026-04-19 15:53:31 +00:00
re-run files through ruff formatter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user