fix: Apply black formatting to resolve CI formatting issues
Some checks failed
CI / test (3.10) (push) Failing after 1m21s
CI / test (3.11) (push) Failing after 1m19s
CI / test (3.9) (push) Failing after 1m22s
CI / lint (push) Failing after 43s

This commit is contained in:
CI Bot
2026-02-06 07:56:02 +00:00
parent 123a4f7d1d
commit d369d3b1f8
8 changed files with 75 additions and 39 deletions

View File

@@ -55,10 +55,10 @@ class SpecParser:
raise InvalidOpenAPISpecError(f"Specification file not found: {self.spec_path}")
try:
with open(self.spec_path, 'r', encoding='utf-8') as f:
if self.spec_path.suffix in ['.yaml', '.yml']:
with open(self.spec_path, "r", encoding="utf-8") as f:
if self.spec_path.suffix in [".yaml", ".yml"]:
return yaml.safe_load(f) or {}
elif self.spec_path.suffix == '.json':
elif self.spec_path.suffix == ".json":
return json.load(f)
else:
return yaml.safe_load(f) or {}