Skip to content

Commit cb5d063

Browse files
Release: 0.7.3 (#57)
1 parent 995d9b4 commit cb5d063

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [0.7.3](https://github.com/BlueBrain/data-validation-framework/compare/0.7.2..0.7.3)
4+
5+
> 22 December 2023
6+
7+
### Fixes
8+
9+
- Attach event hooks to proper classes (Adrien Berchet - [#56](https://github.com/BlueBrain/data-validation-framework/pull/56))
10+
311
## [0.7.2](https://github.com/BlueBrain/data-validation-framework/compare/0.7.1..0.7.2)
412

513
> 22 December 2023

data_validation_framework/task.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,10 @@ def __specifications__(self):
637637

638638

639639
@BaseValidationTask.event_handler(luigi.Event.SUCCESS)
640-
def success_summary(self):
640+
def success_summary(task):
641641
"""Hook to log a summary report of the task."""
642642
L.info("==========================================")
643-
task_summary = f"SUMMARY {self.task_name}: {self.nb_valid} / {self.nb_total} passed"
643+
task_summary = f"SUMMARY {task.task_name}: {task.nb_valid} / {task.nb_total} passed"
644644
L.info(task_summary)
645645
L.info("==========================================")
646646

@@ -751,12 +751,12 @@ def validation_function(*args, **kwargs):
751751

752752

753753
@ValidationWorkflow.event_handler(luigi.Event.SUCCESS)
754-
def spec_report(current_task):
754+
def spec_report(task):
755755
"""Hook to create a specification report."""
756-
L.debug("Generating report of %s", current_task)
757-
if current_task.generate_report:
756+
L.debug("Generating report of %s", task)
757+
if task.generate_report:
758758
try:
759-
make_report(current_task, config=current_task.report_config)
759+
make_report(task, config=task.report_config)
760760
# pylint: disable=broad-except
761761
except Exception as e: # pragma: no cover
762762
L.error(

0 commit comments

Comments
 (0)