-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
78 lines (69 loc) · 1.77 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
78 lines (69 loc) · 1.77 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
default_language_version:
python: python3.10
repos:
- repo: meta
hooks:
- id: check-useless-excludes
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args:
- --maxkb=1024
- id: debug-statements
- id: check-merge-conflict
- id: check-case-conflict
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.7
hooks:
- id: uv-lock
- repo: https://github.com/johannsdg/pre-commit-license-headers
rev: v0.1.0
hooks:
- id: check-license-headers
files: ^(src|scripts|tests|docs/scripts)/.*\.py$
args:
- --template
- |
SPDX-FileCopyrightText: [YEARS] [OWNER]
SPDX-License-Identifier: Apache-2.0
- --owner=.+
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.1
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- id: ruff-format
- repo: https://github.com/adhtruong/mirrors-typos
rev: v1.38.1
hooks:
- id: typos
args:
- --force-exclude
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.0
hooks:
- id: pyupgrade
args:
- --py310-plus
- repo: https://github.com/gitleaks/gitleaks
rev: v8.28.0
hooks:
- id: gitleaks
- repo: local
hooks:
- id: basedpyright-shared-core
name: basedpyright (full src/praxis + scripts)
entry: uv run python -m basedpyright
language: system
pass_filenames: false
types_or:
- python
- pyi