-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (53 loc) · 1.48 KB
/
.pre-commit-config.yaml
File metadata and controls
60 lines (53 loc) · 1.48 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
52
53
54
55
56
57
58
59
60
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update
rev: v0.7.0
hooks:
- id: pre-commit-update
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: mkdocs.yml
- id: check-added-large-files
args: ['--maxkb=1500']
- id: check-json
- id: pretty-format-json
args: [--autofix, --no-sort-keys]
exclude: .*\.ipynb$
- id: check-case-conflict
- id: name-tests-test
args: [--pytest-test-first]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.25.1
hooks:
- id: gitleaks
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.8
hooks:
# Run the linter.
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/hadialqattan/pycln
rev: v2.5.0
hooks:
- id: pycln
args: [--all]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v20.1.3
hooks:
- id: clang-format
types_or: [c, c++, cuda]
# might be expensive to run tests on every commit, uncomment at will
# - repo: local
# hooks:
# - id: pytest
# name: run unit tests
# entry: pytest
# language: system
# pass_filenames: false