-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
81 lines (74 loc) · 1.96 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
79
80
81
# Copyright (C) 2023, CERN
# This software is distributed under the terms of the MIT
# licence, copied verbatim in the file "LICENSE".
# In applying this license, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as Intergovernmental Organization
# or submit itself to any jurisdiction.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- repo: https://github.com/asottile/add-trailing-comma
rev: "v2.4.0"
hooks:
- id: add-trailing-comma
args:
- "--py36-plus"
- repo: https://github.com/PyCQA/isort
rev: "5.12.0"
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: "6.0.0"
hooks:
- id: flake8
args:
- "--max-line-length=100"
- '--ignore=E501,E226'
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.12
hooks:
- id: insert-license
files: ''
types_or:
- python
- yaml
- toml
args:
- "--license-filepath"
- LICENSE_HEADER
- "--detect-license-in-X-top-lines"
- "6"
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.12
hooks:
- id: insert-license
files: ''
types_or:
- jinja
- html
args:
- "--license-filepath"
- LICENSE_HEADER
- "--comment-style"
- '{#||#}'
- "--detect-license-in-X-top-lines"
- "6"
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.12
hooks:
- id: insert-license
files: ''
types_or:
- javascript
args:
- "--license-filepath"
- LICENSE_HEADER
- "--comment-style"
- "/*| *| */"
- "--detect-license-in-X-top-lines"
- "6"