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:
@@ -4,11 +4,11 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import sys
|
||||
import time
|
||||
from urllib.error import HTTPError, URLError
|
||||
from urllib.request import urlopen
|
||||
import json
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
@@ -17,7 +17,11 @@ def parse_args() -> argparse.Namespace:
|
||||
parser.add_argument("--timeout", type=int, default=120, help="Maximum wait time in seconds")
|
||||
parser.add_argument("--interval", type=int, default=5, help="Poll interval in seconds")
|
||||
parser.add_argument("--expect-status", default="ok", help="Expected JSON status field")
|
||||
parser.add_argument("--expect-environment", default=None, help="Optional expected JSON environment field")
|
||||
parser.add_argument(
|
||||
"--expect-environment",
|
||||
default=None,
|
||||
help="Optional expected JSON environment field",
|
||||
)
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user