Skip to content

Commit 90c9399

Browse files
committed
lint and format another file
1 parent 70e86b2 commit 90c9399

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

contentctl/output/api_json_output.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616

1717
from contentctl.output.json_writer import JsonWriter
1818

19-
20-
2119
JSON_API_VERSION = 2
2220

21+
2322
class ApiJsonOutput:
2423
output_path: pathlib.Path
2524
app_label: str
@@ -73,7 +72,9 @@ def writeDetections(
7372
# del()
7473

7574
JsonWriter.writeJsonObject(
76-
os.path.join(self.output_path, f"detections_v{JSON_API_VERSION}.json"), "detections", detections
75+
os.path.join(self.output_path, f"detections_v{JSON_API_VERSION}.json"),
76+
"detections",
77+
detections,
7778
)
7879

7980
def writeMacros(
@@ -89,7 +90,9 @@ def writeMacros(
8990
if k in macro:
9091
del macro[k]
9192
JsonWriter.writeJsonObject(
92-
os.path.join(self.output_path, f"macros_v{JSON_API_VERSION}.json"), "macros", macros
93+
os.path.join(self.output_path, f"macros_v{JSON_API_VERSION}.json"),
94+
"macros",
95+
macros,
9396
)
9497

9598
def writeStories(
@@ -135,7 +138,9 @@ def writeStories(
135138
]
136139

137140
JsonWriter.writeJsonObject(
138-
os.path.join(self.output_path, f"stories_v{JSON_API_VERSION}.json"), "stories", stories
141+
os.path.join(self.output_path, f"stories_v{JSON_API_VERSION}.json"),
142+
"stories",
143+
stories,
139144
)
140145

141146
def writeBaselines(
@@ -166,7 +171,9 @@ def writeBaselines(
166171
]
167172

168173
JsonWriter.writeJsonObject(
169-
os.path.join(self.output_path, f"baselines_v{JSON_API_VERSION}.json"), "baselines", baselines
174+
os.path.join(self.output_path, f"baselines_v{JSON_API_VERSION}.json"),
175+
"baselines",
176+
baselines,
170177
)
171178

172179
def writeInvestigations(
@@ -230,7 +237,9 @@ def writeLookups(
230237
if k in lookup:
231238
del lookup[k]
232239
JsonWriter.writeJsonObject(
233-
os.path.join(self.output_path, f"lookups_v{JSON_API_VERSION}.json"), "lookups", lookups
240+
os.path.join(self.output_path, f"lookups_v{JSON_API_VERSION}.json"),
241+
"lookups",
242+
lookups,
234243
)
235244

236245
def writeDeployments(

0 commit comments

Comments
 (0)