Skip to content
Discussion options

You must be logged in to vote

I assume one could also just ignore the problem and always run the autoformatter on generated code,
but some more obscure languages do not even have such a tool.

That's exactly how I'm doing it. My templates include pre-commit, and I maintain a rather comprehensive test suite using pytest to check generated projects (mostly files/directories and contents), and at least one test is a full integration test that installs dependencies, runs the generated project's test suite, and runs pre-commit on the generated project. I can't imagine how a linter could properly deal with Jinja-templated files.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@cmarqu
Comment options

@pawamoy
Comment options

pawamoy Nov 21, 2025
Collaborator

@pawamoy
Comment options

pawamoy Nov 21, 2025
Collaborator

@cmarqu
Comment options

@sisp
Comment options

sisp Nov 21, 2025
Maintainer

Answer selected by cmarqu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants