Linting tools for the Cheetah templating language.
Python
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Build Status Coverage Status

cheetah_lint

Linting tools for the yelp_cheetah templating language.

Installation

pip install cheetah-lint

Console scripts

cheetah-reorder-imports --help
usage: cheetah-reorder-imports [-h] [filenames [filenames ...]]

positional arguments:
  filenames

optional arguments:
  -h, --help  show this help message and exit
cheetah-flake --help
usage: cheetah-flake [-h] [filenames [filenames ...]]

positional arguments:
  filenames   Filenames to flake.

optional arguments:
  -h, --help  show this help message and exit

As a pre-commit hook

See pre-commit for instructions

Hooks available:

  • cheetah-reorder-imports - This hook reorders imports in cheetah files.
  • cheetah-flake - Lint cheetah code using flake8 and some other checks.