forked from danieleongari/EQeq
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
78 lines (73 loc) · 2.41 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
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/pre-commit/mirrors-mypy
# rev: "" # Use the sha / tag you want to point at
# hooks:
# - id: mypy
# exclude: (versioneer.py|_version.py|^docs/)
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
language_version: python3
name: black
exclude: versioneer.py|eqeq/_version.py|^docs/
entry: black
types: [python]
- repo: https://github.com/pre-commit/mirrors-isort
rev: "v5.6.4" # Use the revision sha / tag you want to point at
hooks:
- id: isort
name: isort
language: system
exclude: versioneer.py|eqeq/_version.py|^docs/
types: [python]
entry: isort
- repo: local
hooks:
- id: pylint
language: system
types: [file, python]
exclude: versioneer.py|eqeq/_version.py|^docs
name: pylint
entry: pylint
# - repo: https://gitlab.com/daverona/pre-commit/cpp
# rev: 0.8.0 # use the most recent version
# hooks:
# # Hooks using native
# - id: clang-format # formatter for C/C++ code based on a style guide
# - id: cpplint # linter (or style-error checker) for Google C++ Style Guide
# - id: cppcheck # static analyzer for C/C++ code