Skip to content

Commit a9f6386

Browse files
committed
chore: Lint fixes
1 parent ff0a3e7 commit a9f6386

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

uvdat/core/tasks/analytics/analysis_type.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def validate_inputs(self, inputs):
3535
if input_name not in inputs:
3636
raise AnalysisInputError(f"{input_name} not provided.")
3737

38+
@abstractmethod
3839
def finalize(self, result):
3940
# Override this to perform custom finalization
4041
pass
@@ -61,7 +62,7 @@ def on_failure(self, exc, task_id, args, kwargs, einfo):
6162

6263
def after_return(self, status, retval, task_id, args, kwargs, einfo): # noqa: PLR0913
6364
# Avoid circular import
64-
from . import analysis_types
65+
from . import analysis_types # noqa: PLC0415
6566

6667
task_result = self.get_task_result(args)
6768
task_result.complete()

uvdat/core/tasks/analytics/flood_simulation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ def run_task(self, *, project, **inputs):
7070

7171
def finalize(self, result):
7272
seconds = (result.completed - result.created).total_seconds()
73-
result.status = f"AI Simulation completed in {seconds:.2f} seconds (compare to baseline 5-hour numerical simulation)."
73+
result.status = (
74+
f"AI Simulation completed in {seconds:.2f} seconds "
75+
"(compare to baseline 5-hour numerical simulation)."
76+
)
7477
result.save()
7578

7679

0 commit comments

Comments
 (0)