forked from E3SM-Project/Omega
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (46 loc) · 1.62 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (46 loc) · 1.62 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
files: ^components/omega/
repos:
- repo: https://github.com/Takishima/cmake-pre-commit-hooks
rev: v1.9.6
hooks:
- id: clang-format
args: ["-i"]
# - id: clang-tidy
# args: [--checks=readability-magic-numbers,--warnings-as-errors=*]
# - id: cppcheck
# - id: include-what-you-use
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
# Can run individually with `pre-commit run isort --all-files`
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
hooks:
- id: isort
args: ["--settings-file=components/omega/python_lint.cfg"]
# Can run individually with `flynt [file]` or `flynt [source]`
- repo: https://github.com/ikamensh/flynt
rev: 1.0.6
hooks:
- id: flynt
args: ["--fail-on-change", "--verbose", "--line-length=79"]
require_serial: true
# Can run individually with `pre-commit run flake8 --all-files`
# Need to use flake8 GitHub mirror due to CentOS git issue with GitLab
# https://github.com/pre-commit/pre-commit/issues/1206
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
args: ["--config=components/omega/python_lint.cfg"]
additional_dependencies: [flake8-isort]
# Can run individually with `pre-commit run mypy --all-files`
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2
hooks:
- id: mypy
args: ["--config=components/omega/python_lint.cfg", "--show-error-codes"]
verbose: true
additional_dependencies: ['types-requests']