Fix linting issues: line length, import sorting, unused variables
- Set ruff/black line length to 120 - Reformatted code with black - Fixed import ordering with ruff - Disabled lint for UI component files with long CSS strings - Updated pyproject.toml with proper tool configuration
This commit is contained in:
@@ -12,7 +12,9 @@ class GreeksTable:
|
||||
|
||||
def __init__(self, options: list[OptionContract | dict[str, Any]] | None = None) -> None:
|
||||
self.options = options or []
|
||||
with ui.card().classes("w-full rounded-2xl border border-slate-200 bg-white shadow-sm dark:border-slate-800 dark:bg-slate-900"):
|
||||
with ui.card().classes(
|
||||
"w-full rounded-2xl border border-slate-200 bg-white shadow-sm dark:border-slate-800 dark:bg-slate-900"
|
||||
):
|
||||
with ui.row().classes("w-full items-center justify-between"):
|
||||
ui.label("Option Greeks").classes("text-lg font-semibold text-slate-900 dark:text-slate-100")
|
||||
ui.label("Live Risk Snapshot").classes(
|
||||
@@ -70,8 +72,8 @@ class GreeksTable:
|
||||
return (
|
||||
'<tr class="border-b border-slate-200 dark:border-slate-800">'
|
||||
f'<td class="px-4 py-3 font-medium text-slate-900 dark:text-slate-100">{label}</td>'
|
||||
f'{cells}'
|
||||
'</tr>'
|
||||
f"{cells}"
|
||||
"</tr>"
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
@@ -99,6 +101,6 @@ class GreeksTable:
|
||||
def _empty_row() -> str:
|
||||
return (
|
||||
'<tr><td colspan="6" class="px-4 py-6 text-center text-slate-500 dark:text-slate-400">'
|
||||
'No options selected'
|
||||
'</td></tr>'
|
||||
"No options selected"
|
||||
"</td></tr>"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user