-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
60 lines (59 loc) · 1.79 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
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
default_language_version:
# force all unspecified python hooks to run python3
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 # Updated 2024/04
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: mixed-line-ending
- id: check-yaml
args:
- --allow-multiple-documents
- repo: https://github.com/crate-ci/typos
rev: v1.20.9 # Updated 2024/04
hooks:
- id: typos
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1 # Updated 2023/07
hooks:
- id: insert-license
name: insert-license-shell
files: \.(sh|py)$
args:
- --license-filepath
# defaults to: LICENSE.txt
- HEADER
- id: insert-license
name: insert-license-cpp
files: \.(c|cc|cxx|cpp|h|hpp|hxx|inl|h.in)$
args:
- --license-filepath
# defaults to: LICENSE.txt
- HEADER
- --comment-style
- // # defaults to: #
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.0 # Updated 2024/04
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0 # Last checked 2024/04
hooks:
- id: mypy
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
- -rn # Only display messages
- -sn # Don't display the score
- --source-roots=kerngen # Working directory