-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (58 loc) · 1.39 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (58 loc) · 1.39 KB
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
exclude: '^$'
fail_fast: false
default_language_version:
python: python3.7
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: check-added-large-files
- id: check-ast
types: [file, python]
- id: check-case-conflict
- id: check-json
types: [file, json]
- id: check-merge-conflict
- id: check-symlinks
types: [symlink]
- id: check-yaml
args: [--allow-multiple-documents]
types: [file, yaml]
- id: detect-private-key
types: [file, text]
- id: end-of-file-fixer
types: [file, python]
- id: fix-encoding-pragma
types: [file, python]
- id: requirements-txt-fixer
types: [file, text]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
types: [file, text]
exclude: ^docs/.*/coverage/.*\.html$
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.4
hooks:
- id: isort
types: [file, python]
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.7
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: flake8
exclude: ^setup.py$
types: [file, python]
- repo: local
hooks:
- id: check-manifest
name: Check Manifest
description: Check package manifest against git committed files.
always_run: true
files: '^$'
entry: check-manifest
language: python
types: [file, plain-text]