-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
58 lines (58 loc) · 1.64 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
---
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
additional_dependencies: ['click<8.1.0']
args:
- --line-length=88
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ['--profile', 'black']
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
args:
- '--ignore=E501,W503,E203'
- repo: https://github.com/rtts/djhtml
rev: v1.4.11
hooks:
- id: djhtml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v2.0.1
hooks:
- id: docker-compose-check
- repo: https://github.com/hadolint/hadolint
rev: v2.8.0
hooks:
- id: hadolint-docker
name: Lint Dockerfiles
description: Runs hadolint Docker image to lint Dockerfiles
language: docker_image
types: ['dockerfile']
entry: hadolint/hadolint:v2.8.0 hadolint
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v8.27.0' # Use the sha / tag you want to point at
hooks:
- id: eslint
files: react/
additional_dependencies:
- eslint@latest
- eslint-config-airbnb@latest
- eslint-plugin-react@latest
- '@typescript-eslint/eslint-plugin@latest'
- '@typescript-eslint/parser@latest'
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.7.1' # Use the sha or tag you want to point at
hooks:
- id: prettier
files: react/