-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
87 lines (75 loc) · 2.27 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
minimum_pre_commit_version: 1.17.0
default_stages: [commit,push]
repos:
- repo: local
hooks:
- id: codespell
name: Check Spelling
description: Checks for common misspellings in text files.
entry: codespell --ignore-words=.aspell.en.pws
language: system
exclude: ^.*\.svg
types: [file, text]
- id: trailing-whitespace
name: Trim Trailing Space
entry: trailing-whitespace-fixer
language: system
types: [file, text]
- id: end-of-file-fixer
name: Fix End of Files
description: Ensures that a file is either empty, or ends with one newline.
entry: end-of-file-fixer
language: system
types: [file, text]
- id: check-merge-conflict
name: Check for merge conflicts
description: Check for files that contain merge conflict strings.
entry: check-merge-conflict
language: system
types: [file, text]
- id: yamllint
name: yamllint
description: Lint YAML files.
entry: yamllint
language: system
types: [yaml]
- id: isort
name: isort
description: A Python utility that sorts imports alphabetically
entry: isort
language: system
types: [python]
- id: flake8
name: Flake8
description: Python Style Guide Enforcement
entry: flake8 --config .flake8
language: system
types: [python]
- id: black
name: Black
description: Uncompromising Python code formatter
entry: black
language: system
types: [python]
- id: elm-format
name: Elm Format
description: Format Elm source code
entry: elm-format --yes
language: system
files: .*\.elm
types: [file]
- id: eslint
name: ESLint
description: Pluggable JavaScript linter
entry: eslint --fix src/
pass_filenames: false
language: system
types: [javascript]
- id: elm-analyse
name: Elm Analyse
description: Identify deficiencies and apply best practices in Elm
entry: elm-analyse
pass_filenames: false
language: system
files: .*\.elm
types: [file]