pelican-mg/.pre-commit-config.yaml
2017-12-05 09:04:20 +01:00

30 lines
836 B
YAML
Executable File

- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v1.1.1
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
args: [--no-markdown-linebreak-ext]
exclude: ^static/(csslibs/|jslibs/|bundle-)
- repo: git://github.com/Lucas-C/pre-commit-hooks
sha: v1.1.4
hooks:
- id: remove-crlf
- id: remove-tabs
- repo: local
hooks:
- id: gen_statics_bundles
name: gen_statics_bundles
language: system
entry: ./gen_statics_bundles.py
files: ^static/(main.css$|js/)
- id: eslint
name: eslint
language: system
entry: sh -c 'eslint templates/js/*.js'
files: ''
- id: stylelint
name: stylelint
language: system
entry: sh -c 'stylelint static/main.css'
files: ''