-
Notifications
You must be signed in to change notification settings - Fork 471
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (49 loc) · 1.72 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
55 lines (49 loc) · 1.72 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
# Pre-commit configuration file for code quality and formatting checks
# In this repository we use 'prek' instead of 'pre-commit' to manage hooks.
# Ensure that 'prek' is installed and used to run these hooks (documentation -> https://github.com/j178/prek).
minimum_prek_version: "0.2.19"
default_language_version:
node: 24.11.1
python: python3.13
repos:
# Ruff - Python linter and formatter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.11.13
hooks:
- id: ruff-check
args: [--fix, --unsafe-fixes]
- id: ruff-format
# Prettier - Code formatter for UI files
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
exclude: ^(application/ui/|\.github/instructions/|\.github/copilot-instructions\.md)
# Hadolint - Dockerfile linter
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.14.0
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=.markdownlint.yaml]
# Agent skills - keep client adapters in sync and validate the layout
- repo: local
hooks:
- id: agent-skills-sync
name: sync agent skill adapters
entry: python .github/scripts/skills/agent_skills.py sync
language: python
pass_filenames: false
files: ^skills/
- id: agent-skills-validate
name: validate agent skills layout
entry: python .github/scripts/skills/agent_skills.py validate
language: python
pass_filenames: false
files: ^skills/