Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Block library" templates have blank lines marked as missing #6

Open
nedbat opened this issue Jan 27, 2015 · 1 comment
Open

"Block library" templates have blank lines marked as missing #6

nedbat opened this issue Jan 27, 2015 · 1 comment

Comments

@nedbat
Copy link
Owner

nedbat commented Jan 27, 2015

Some libraries use blocks from templates that have no {% extends %} tag. Normally a template like that would be fully rendered, so the blank lines between the blocks would be rendered. Since these templates are never rendered in full, those blank lines are never rendered. But coverage doesn't understand how these files are being used (as block libraries), so it marks the interstitial blank lines as missing.

Examples of libraries that do this: django-email-template, formulation and django-sniplates.

@funkybob
Copy link

One possible solution is a magic marker for the first line of the template to indicate that blanks outside of blocks are NOQA ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants