Skip to content

Commit e7044c9

Browse files
olehermanseclaude
andcommitted
Made cfengine dev format-docs also run normal cfengine format
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
1 parent 9d9f4f5 commit e7044c9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/cfengine_cli/dev.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
print_release_dependency_tables,
1010
)
1111
from cfengine_cli.docs import update_docs, check_docs
12+
from cfengine_cli.format import format_paths
1213
from cfengine_cli.syntax_tree import syntax_tree
1314

1415

@@ -49,7 +50,11 @@ def print_dependency_tables(args) -> int:
4950

5051
def format_docs(files) -> int:
5152
_expect_repo("documentation")
52-
return update_docs(files)
53+
ret = update_docs(files)
54+
# Also run the same logic as `cfengine format` so .cf / .json files
55+
# are formatted without having to run that command manually.
56+
ret |= format_paths(files, line_length=80, check=False)
57+
return ret
5358

5459

5560
def lint_docs() -> int:

0 commit comments

Comments
 (0)