fix: Apply black formatting to resolve CI formatting issues
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user