-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (36 loc) · 1.17 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
39 lines (36 loc) · 1.17 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
# Pre-commit hooks for ios-simulator-skill
# Install: pre-commit install
# Run manually: pre-commit run --all-files
repos:
# Black - Code formatter
- repo: https://github.com/psf/black
rev: 26.5.1
hooks:
- id: black
name: Format Python code with Black
language_version: python3.12
files: ^ios-simulator-skill/skills/ios-simulator-skill/scripts/.*\.py$
# Ruff - Fast linter (replaces Flake8, isort, etc)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.14
hooks:
- id: ruff
name: Lint with Ruff
args: [--fix, --exit-non-zero-on-fix]
files: ^ios-simulator-skill/skills/ios-simulator-skill/scripts/.*\.py$
# General file checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: Trim trailing whitespace
- id: end-of-file-fixer
name: Fix end of files
- id: check-yaml
name: Check YAML syntax
- id: check-added-large-files
name: Check for large files
args: ['--maxkb=500']
- id: mixed-line-ending
name: Fix mixed line endings
args: ['--fix=lf']