2017-08-10 16:30:29 +00:00
|
|
|
- repo: git://github.com/pre-commit/pre-commit-hooks
|
2017-11-30 01:44:55 +00:00
|
|
|
sha: v1.1.1
|
2017-08-10 16:30:29 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: trailing-whitespace
|
2017-11-30 02:49:39 +00:00
|
|
|
args: [--no-markdown-linebreak-ext]
|
2017-12-04 22:56:15 +00:00
|
|
|
exclude: ^static/(csslibs/|jslibs/|bundle-)
|
2017-08-10 16:30:29 +00:00
|
|
|
- repo: git://github.com/Lucas-C/pre-commit-hooks
|
2017-11-30 01:44:55 +00:00
|
|
|
sha: v1.1.4
|
2017-08-10 16:30:29 +00:00
|
|
|
hooks:
|
|
|
|
- id: remove-crlf
|
|
|
|
- id: remove-tabs
|
2017-11-30 00:54:19 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
2017-12-05 08:04:20 +00:00
|
|
|
- id: gen_statics_bundles
|
|
|
|
name: gen_statics_bundles
|
|
|
|
language: system
|
|
|
|
entry: ./gen_statics_bundles.py
|
|
|
|
files: ^static/(main.css$|js/)
|
2017-11-30 00:57:52 +00:00
|
|
|
- id: eslint
|
|
|
|
name: eslint
|
2017-11-30 00:54:19 +00:00
|
|
|
language: system
|
2019-02-13 19:07:31 +00:00
|
|
|
entry: sh -c 'eslint static/js/*.js'
|
|
|
|
files: ^static/js/
|
2017-12-05 08:04:20 +00:00
|
|
|
- id: stylelint
|
|
|
|
name: stylelint
|
|
|
|
language: system
|
|
|
|
entry: sh -c 'stylelint static/main.css'
|
2019-02-13 19:07:31 +00:00
|
|
|
files: ^static/js/main.css$
|