Skip to content

fix function names #110

fix function names

fix function names #110

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Black failed Dec 17, 2023 in 0s

1 error

Black found 1 error

Annotations

Check failure on line 179 in /home/runner/work/Aeolus/Aeolus/cli/generators/cli.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/Aeolus/Aeolus/cli/generators/cli.py#L168-L179

             )
             return None
         self.result.append(f"# step {name}")
         self.result.append(f"# generated from step {original_name}")
         self.result.append(f"# original type was {original_type}")
-        valid_funtion_name: str = re.sub('[^a-zA-Z]+', '', name)
+        valid_funtion_name: str = re.sub("[^a-zA-Z]+", "", name)
         if call:
             self.functions.append(valid_funtion_name)
         self.result.append(f"{valid_funtion_name} () " + "{")
         self.add_lifecycle_guards(name=name, exclusions=step.excludeDuring, indentations=2)