-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.1 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: check-added-large-files
exclude: partsapp\/static\/highcharts\/highcharts\.src\.js$
- id: check-case-conflict
- id: check-merge-conflict
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- id: flake8
exclude: migrations\/[^/]*\.py$|settings\/[^/]*\.py|highcharts\/$|docs\/conf\.py
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.6
hooks:
- id: forbid-crlf
exclude: \.csv$|\.png$|\.bat$
- id: forbid-tabs
exclude: Makefile|\.bat|highcharts\/|highcharts\/modules\/$|\.png
- repo: git://github.com/adambrenecki/pre-commit-python-sorter
rev: 1.0.5
hooks:
- id: python-import-sorter
exclude: migrations\/[^/]*\.py$|docs\/conf\.py
- repo: https://github.com/prettier/prettier
rev: 1.14.2
hooks:
- id: prettier
- repo: https://github.com/ambv/black
rev: 18.9b0
hooks:
- id: black
language_version: python3.7