-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (68 loc) · 2.25 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
70 lines (68 loc) · 2.25 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
# Generated files that should not be reformatted by any hook
exclude: |
(?x)^(
environment\.yml|
examples/\.quarto/.*|
examples/_quarto_reqs/.*|
examples/_site/.*|
site/.*
)$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.9
hooks:
# TODO(MitchellAcoustics): Enable linting pre-commit hooks
# https://github.com/MitchellAcoustics/Soundscapy/issues/114
# - id: ruff
# exclude: ^test/.*\.py$
- id: ruff-format
# - repo: https://github.com/facebook/pyrefly-pre-commit
# rev: 0.63.1 # Note: this is the version of the pre-commit hook, NOT the pyrefly version used for type checking
# hooks:
# - id: pyrefly-check
# name: Pyrefly (type checking)
# pass_filenames: false # Recommended to do full repo checks. However, you can change this to `true` to only check changed files
# language: system # Use system-installed pyrefly
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.44.0
hooks:
- id: markdownlint-fix
args:
- --dot
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: forbid-tabs
- id: remove-tabs
# TODO(MitchellAcoustics): Enable linting pre-commit hooks
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.5.3
hooks:
- id: prettier
args:
- --quote-props=as-needed
exclude: ^docs/.*\.md$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: end-of-file-fixer
- id: mixed-line-ending
args:
- --fix=lf
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.2
hooks:
- id: check-github-issue-forms
files: ^\.github/ISSUE_TEMPLATE/.*\.yml$
exclude: ^\.github/ISSUE_TEMPLATE/config\.yml$
- id: check-github-issue-config
files: ^\.github/ISSUE_TEMPLATE/config\.yml$
- id: check-github-workflows
files: ^\.github/workflows/.*\.yml$
- id: check-github-actions
files: (^action\.yml$)|(^\.github/actions/.*/action\.yml$)