base file and editor config for python (4 indents space following python convention)

pull/240/head
Nevysha 2023-07-08 12:04:51 +02:00
parent f32afbc952
commit 0fe079e616
4 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,10 @@ charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true
insert_final_newline = true insert_final_newline = true
# Python
[*.py]
indent_size = 4
[*.md] [*.md]
trim_trailing_whitespace = false trim_trailing_whitespace = false

6
scripts/lib/api.py Normal file
View File

@ -0,0 +1,6 @@
class LobeApi:
def __init__(self, lobe_model_path):
pass
def create_api_route(self, app):
pass

0
scripts/lib/config.py Normal file
View File

View File

@ -5,6 +5,7 @@ import os
from modules import shared from modules import shared
from modules import script_callbacks from modules import script_callbacks
def on_ui_settings(): def on_ui_settings():
section = ('lobe_theme', "Lobe Theme") section = ('lobe_theme', "Lobe Theme")
@ -19,4 +20,5 @@ def on_ui_settings():
), ),
) )
script_callbacks.on_ui_settings(on_ui_settings) script_callbacks.on_ui_settings(on_ui_settings)