add j2lint & cleanup jinja templates#32
Conversation
|
Hey @ryanmerolle this is failing an integration test: Primary failure: No filter named 'ipaddress_interface' jinja2.exceptions.TemplateAssertionError: No filter named 'ipaddress_interface'. This cascades into the final test failure: FAILED tests/integration/test_workflow.py::TestDCWorkflow::test_13_merge_proposed_change |
Rebased version of PR #32 from ryanmerolle. Adds j2lint dependency and standardizes Jinja2 template formatting across all templates: - Consistent whitespace control with hyphens - Use built-in Jinja2 filters instead of .split("/")[0] - Standardized indentation and block formatting Original author: Ryan Merolle <ryan.merolle@gmail.com>
|
Closing in favor of #56 which rebases this work onto current main. The integration test failure was caused by stale dependency versions (infrahub-testcontainers 1.6.1 vs 1.7.7). Thank you @ryanmerolle for the original contribution! |
Waiting on feedback for opsmill/infrahub#8182 to further reduce template noise gven the usage of hyphens to address whitespace issues.