-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml.mypy-backup
More file actions
103 lines (94 loc) · 2.94 KB
/
Copy path.pre-commit-config.yaml.mypy-backup
File metadata and controls
103 lines (94 loc) · 2.94 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Pre-commit hooks for audiomancer
# See https://pre-commit.com for more information
repos:
# Standard pre-commit hooks
- 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
files: '(\.yaml$|\.yml$|\.yaml\.template$|\.yml\.template$)'
- id: check-json
name: Check JSON syntax
files: '(\.json$|\.json\.template$)'
# Python linting and formatting with ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
name: Ruff linter
args: [--fix]
files: '(\.py$|\.py\.template$)'
- id: ruff-format
name: Ruff formatter
files: '(\.py$|\.py\.template$)'
# Python type checking with pyright
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.390
hooks:
- id: pyright
name: Type check with pyright
files: '(\.py$|\.py\.template$)'
additional_dependencies:
- types-PyYAML
- pydantic
- pydantic-settings
- types-tqdm
# Note: essentia and faiss are C++ bindings - use local stubs
# Markdown formatting
- repo: https://github.com/hukkin/mdformat
rev: 0.7.21
hooks:
- id: mdformat
name: Format Markdown
files: '(\.md$|\.md\.template$)'
exclude: 'README\.md$'
additional_dependencies:
- mdformat-gfm
- mdformat-frontmatter
# YAML linting
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
name: Lint YAML
args: [--strict]
files: '(\.yaml$|\.yml$|\.yaml\.template$|\.yml\.template$)'
# Shell script linting
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
name: Lint shell scripts
files: '(\.sh$|\.sh\.template$)'
# Haskell formatting and linting
- repo: https://github.com/bwbaugh/haskell-pre-commit-hooks
rev: master
hooks:
- id: stylish-haskell
name: Format Haskell
files: '(\.hs$|\.tidal$|\.tidal\.template$)'
- id: hlint
name: Lint Haskell
files: '(\.hs$|\.tidal$|\.tidal\.template$)'
# Local hooks
- repo: local
hooks:
# README TOC generation with doctoc
- id: doctoc
name: Generate README TOC
entry: npx doctoc@latest --maxlevel 3 --github --notitle
language: system
files: 'README\.md$'
pass_filenames: true
# SuperCollider linting (optional - skips if sclint not installed)
- id: sclint
name: SuperCollider Lint (optional)
entry: bash -c 'command -v sclint >/dev/null && sclint "$@" || exit 0' --
language: system
files: '(\.scd$|\.scd\.template$)'
pass_filenames: true