gimbo / blocktrans-trimmed-check

pre-commit hook: ensure multi-line blocktrans blocks in Django templates are trimmed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status Windows Build status

blocktrans-trimmed-check

This is a pre-commit hook, written for the pre-commit.com framework, which looks for Django template files containing a multi-line blocktrans block but no trimmed directive.

Configuration

Example .pre-commit-config.yaml entry:

  - repo: https://github.com/gimbo/blocktrans-trimmed-check.git
    rev: master
    hooks:
      - id: blocktrans-trimmed-check

About

pre-commit hook: ensure multi-line blocktrans blocks in Django templates are trimmed

License:MIT License


Languages

Language:Python 58.4%Language:HTML 41.6%