猎豹模板语言的linting工具。
cheetah-lint的Python项目详细描述
猎豹毛
用于yelp_cheetah模板语言的linting工具。
安装
pip install cheetah-lint
控制台脚本
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
作为预提交挂钩
有关说明,请参见pre-commit。
提供挂钩:
cheetah-reorder-imports
-这个钩子重新排序cheetah文件中的导入。cheetah-flake
-使用flake8和其他一些检查的lint cheetah代码。