-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
64 lines (61 loc) · 1.83 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-yaml
name: Check Yaml
description: This hook checks yaml files for parseable syntax.
entry: check-yaml
language: python
types: [yaml]
- id: detect-private-key
name: Detect Private Key
description: Detects the presence of private keys
entry: detect-private-key
language: python
types: [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: python
types: [text]
- id: fix-encoding-pragma
name: Fix python encoding pragma
language: python
entry: fix-encoding-pragma
description: "Add # -*- coding: utf-8 -*- to the top of python files"
types: [python]
- id: mixed-line-ending
name: Mixed line ending
description: Replaces or checks mixed line ending
entry: mixed-line-ending
language: python
types: [text]
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
language_version: python3
name: black
exclude: ^docs/
entry: black
types: [python]
- repo: https://github.com/PyCQA/isort
rev: "5.11.4" # Use the revision sha / tag you want to point at
hooks:
- id: isort
name: isort
language: python
exclude: ^docs/
types: [python]
entry: isort
- repo: local
hooks:
- id: pylint
language: python
types: [file, python]
exclude: ^docs|pyepal/pal/_hypervolume.py|pyepal/models/coregionalized.py/tests
name: pylint
entry: pylint