-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
89 lines (76 loc) · 2.56 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
89 lines (76 loc) · 2.56 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
79
80
81
82
83
84
85
86
87
88
89
# Copyright (C) 2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Ensure that 'prek' is installed and used to run these hooks (documentation -> https://github.com/j178/prek).
minimum_prek_version: "0.2.19"
exclude: ^CHANGELOG\.md$
default_language_version:
python: python3.12
repos:
# Ruff - Python linter and formatter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.15.12
hooks:
- id: ruff-check
args: [--fix, --unsafe-fixes]
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.9.7"
hooks:
- id: uv-lock
name: uv lock
# python static type checking
- repo: local
hooks:
- id: pyrefly-check
name: pyrefly (type checking)
entry: pyrefly check
language: python
additional_dependencies: [pyrefly==0.57.1]
pass_filenames: false
types: [python]
# Hadolint - Dockerfile linter
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.0.3
hooks:
- id: hadolint
name: hadolint
description: Runs hadolint to lint Dockerfiles
# Markdownlint - Markdown linter
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.46.0
hooks:
- id: markdownlint
args: [--config, pyproject.toml, --configPointer, /tool/markdownlint]
# zizmor detects security issues in GitHub Actions workflows.
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.9.0
hooks:
- id: zizmor
args: ["--min-severity", "medium", "--min-confidence", "high"]
# gitleaks detects secrets (API keys, tokens, credentials) in code.
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
- repo: local
hooks:
- id: agent-skills-sync
name: sync agent skill adapters
entry: python3 .github/scripts/skills/agent_skills.py sync
language: system
pass_filenames: false
files: ^skills/
- id: agent-skills-validate
name: validate agent skills layout
entry: python3 .github/scripts/skills/agent_skills.py validate
language: system
pass_filenames: false
files: ^skills/
# ========================================================================== #
# DOCUMENTATION FORMATTING (root-level docs) #
# ========================================================================== #
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.5.3
hooks:
- id: prettier
types_or: [markdown, yaml, json]