Skip to content

Commit 3557490

Browse files
committed
chore: fix linting
1 parent 79ffe60 commit 3557490

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

otterdog/webapp/tasks/apply_changes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ async def _execute(self) -> ApplyResult:
214214
# use a friendly user-facing message rather than the raw evaluator
215215
# output; full diagnostics stay in the server log.
216216
apply_result.apply_output = (
217-
"Applying the configuration failed. "
218-
"Please contact an admin if you believe this is incorrect."
217+
"Applying the configuration failed. Please contact an admin if you believe this is incorrect."
219218
)
220219
apply_result.apply_success = False
221220

otterdog/webapp/tasks/blueprints/append_configuration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ async def _process_blueprint(self, result: CheckResult) -> None:
115115
try:
116116
# confine imports to the org config directory, matching the layout
117117
# expected by org configs (vendored templates only).
118-
jsonnet_evaluate_file(
119-
patched_config_file, import_base_dir=org_config.jsonnet_config.org_dir
120-
)
118+
jsonnet_evaluate_file(patched_config_file, import_base_dir=org_config.jsonnet_config.org_dir)
121119
except RuntimeError as ex:
122120
self.logger.error("failed to evaluate patched configuration", exc_info=ex)
123121
result.check_failed = True

otterdog/webapp/tasks/fetch_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ async def _execute(self) -> None:
5050

5151
# save configuration — confine imports to the org config directory,
5252
# matching the layout expected by org configs (vendored templates only).
53-
config_data = jsonnet_evaluate_file(
54-
config_file, import_base_dir=org_config.jsonnet_config.org_dir
55-
)
53+
config_data = jsonnet_evaluate_file(config_file, import_base_dir=org_config.jsonnet_config.org_dir)
5654
config = ConfigurationModel( # type: ignore
5755
github_id=self.org_id,
5856
project_name=org_config.name,

tests/test_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
format_date_for_csv,
2222
is_different_ignoring_order,
2323
is_ghsa_repo,
24+
jsonnet_evaluate_snippet,
2425
parse_template_url,
2526
patch_to_other,
27+
restrict_jsonnet_imports,
2628
snake_to_camel_case,
27-
snake_to_normal_case, restrict_jsonnet_imports, jsonnet_evaluate_snippet,
29+
snake_to_normal_case,
2830
)
2931

3032

0 commit comments

Comments
 (0)