-
Notifications
You must be signed in to change notification settings - Fork 51
/
.pre-commit-config.yaml
43 lines (43 loc) · 1.17 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
sha: v2.2.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
- id: debug-statements
- id: check-merge-conflict
- repo: https://github.com/pre-commit/mirrors-isort
rev: 'v5.0.9'
hooks:
- id: isort
files: 'preview_generator/(.*)/*.py'
- repo: https://github.com/pre-commit/mirrors-isort
rev: 'v5.0.9'
hooks:
- id: isort
files: 'tests/(.*)/*.py'
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
args: [-l 100]
files: 'preview_generator'
- repo: https://github.com/ambv/black
rev: 21.11b1
hooks:
- id: black
args: [-l 100]
files: 'tests'
- repo: https://github.com/pre-commit/pre-commit-hooks.git
sha: v2.2.1
hooks:
- id: flake8
files: 'preview_generator'
- repo: https://github.com/pre-commit/pre-commit-hooks.git
sha: v2.2.1
hooks:
- id: flake8
files: 'tests'