forked from LibraryOfCongress/concordia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
43 lines (43 loc) · 1.36 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
exclude: '.*/vendor/.*'
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.15
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 18.9b0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: check-byte-order-marker
- id: trailing-whitespace
- id: check-merge-conflict
- id: flake8
- id: check-json
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- id: detect-private-key
- id: pretty-format-json
args: ['--autofix', '--no-sort-keys', '--indent=4']
- id: mixed-line-ending
args: ['--fix=lf']
- repo: https://github.com/prettier/prettier
rev: 1.16.2
hooks:
- id: prettier
files: \.(css|less|scss|ts|tsx|graphql|gql|json|js|jsx|md)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v5.15.1
hooks:
- id: eslint
additional_dependencies:
- repo: https://github.com/awslabs/cfn-python-lint
rev: v0.15.0
hooks:
- id: cfn-python-lint
files: cloudformation/.*\.(json|yml|yaml)$