diff --git a/github_scripts/suite_data.py b/github_scripts/suite_data.py index e06b702d..98c33109 100644 --- a/github_scripts/suite_data.py +++ b/github_scripts/suite_data.py @@ -36,10 +36,10 @@ class SuiteData: "-v-", ) - def __init__(self) -> None: + def __init__(self, suite_path=None) -> None: self.dependencies = {} self.rose_data = {} - self.suite_path = None + self.suite_path = suite_path self.task_states = {} self.temp_directory = None diff --git a/github_scripts/suite_report_git.py b/github_scripts/suite_report_git.py index 0f472f69..5bf32254 100755 --- a/github_scripts/suite_report_git.py +++ b/github_scripts/suite_report_git.py @@ -69,7 +69,7 @@ class SuiteReport(SuiteData): close_collapsed = "" def __init__(self, suite_path: Path) -> None: - self.suite_path: Path = suite_path + super().__init__(suite_path) self.suite_user = suite_path.owner() self.suite_starttime: str = self.get_suite_starttime() self.workflow_id: str = self.get_workflow_id() diff --git a/umdp3_fixer/ampersands.py b/umdp3_fixer/ampersands.py index 9d8debcb..27bf99ad 100755 --- a/umdp3_fixer/ampersands.py +++ b/umdp3_fixer/ampersands.py @@ -54,6 +54,7 @@ class CharError(ParsingError): """ def __init__(self, char, number): + super().__init__() self.number = number self.char = char self.msg = 'There are {0:d} unquoted, uncommented "{1:s}" in this line.'.format( diff --git a/umdp3_fixer/fstring_parse.py b/umdp3_fixer/fstring_parse.py index b557cf92..fdbdc189 100644 --- a/umdp3_fixer/fstring_parse.py +++ b/umdp3_fixer/fstring_parse.py @@ -36,6 +36,7 @@ class QuoteError(ParsingError): """ def __init__(self, quote, number): + super().__init__() self.number = number self.quote = quote self.quotemarks = {"'": "single quotes", '"': "double quotes"}