ansible-lint icon indicating copy to clipboard operation
ansible-lint copied to clipboard

--write: add utils for dumping Jinja from AST

Open cognifloyd opened this issue 3 years ago • 0 comments

TODO:

  • [ ] Improve dumping templates that need to be wrapped due to length

  • [ ] Add more test cases

  • [ ] Reword the PR description

  • Add jinja TemplateDumper

  • Add some basic tests and dump() func

  • Add tests for jinja operators

  • Better type hints

  • Unused imports

  • Ignore pycharm false positive warnings

  • Simplify TemplateDumper signature

  • reformat with black

  • flake8 required fixes

  • Add more typehints to satisfy mypy

  • simplify elif/else after return or continue for pylint

  • disable false positive pylint checks

  • Add new lines after blocks in Jinja template dumper

  • Consolidate jinja dumper write_block_stmt logic

  • better write_block_stmt

  • make sphinx happy

  • format transform_utils docstrings for sphinx

  • tell sphinx to ignore more classes

  • Fix newlines in Jinja template dumper

  • Correct test for newline feature in TemplateDumper

  • Use . instead of [] for getitem dumping in simple cases

  • Add TODO about protected name attributes

cognifloyd avatar Apr 05 '22 20:04 cognifloyd