-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (34 loc) · 1.26 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
34 lines (34 loc) · 1.26 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=3072, --enforce-all]
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- id: yamlfmt
- repo: local
hooks:
- id: actionlint
name: actionlint
entry: actionlint
args: [-ignore, 'property ".+" is not defined in object type', -ignore, 'receiver of object dereference "version" must be type of object but got "string"']
language: script
types: ["yaml"]
files: ^.github/workflows/
- id: python-complexity
name: Python complexity (Ruff C901)
entry: ruff check --no-cache --select C901 scripts
language: python
additional_dependencies: ["ruff==0.14.14"]
pass_filenames: false
files: ^(scripts/.*\.py|pyproject\.toml)$
- id: workflow-hygiene
name: workflow hygiene (dead inputs and secrets)
description: "Flags unused workflow_call inputs and secrets."
entry: python scripts/check_workflow_hygiene.py
language: python
additional_dependencies: ["pyyaml==6.0.3"]
files: ^\.github/workflows/reusable-build-test-release\.yml$