Skip to content

Commit e0b8d0d

Browse files
Fix FBT001 in scripts/migrate_to_jinja2.py (missed by initial pass)
Agent-Logs-Url: https://github.com/GitHubSecurityLab/seclab-taskflow-agent/sessions/3c237b9a-7f89-4863-9650-2c7b11047490 Co-authored-by: kevinbackhouse <4358136+kevinbackhouse@users.noreply.github.com>
1 parent 486d5b3 commit e0b8d0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/migrate_to_jinja2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class TemplateMigrator:
2222
"""Migrates custom template syntax to Jinja2."""
2323

24-
def __init__(self, dry_run: bool = False):
24+
def __init__(self, *, dry_run: bool = False):
2525
self.dry_run = dry_run
2626
self.transformations: List[Tuple[str, str]] = []
2727

@@ -133,7 +133,7 @@ def _show_diff(self, original: str, migrated: str):
133133
print(f" - {orig}")
134134
print(f" + {mig}")
135135

136-
def migrate_directory(self, directory: Path, recursive: bool = True) -> int:
136+
def migrate_directory(self, directory: Path, *, recursive: bool = True) -> int:
137137
"""Migrate all YAML files in directory.
138138
139139
Returns:

0 commit comments

Comments
 (0)