-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (45 loc) · 1.42 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
48 lines (45 loc) · 1.42 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
always_run: true
- id: trailing-whitespace
always_run: true
exclude: .bumpversion.cfg
- id: check-docstring-first
always_run: true
- id: check-json
always_run: true
- id: check-yaml
always_run: true
- id: check-merge-conflict
always_run: true
args: ['--assume-in-merge']
- id: check-executables-have-shebangs
always_run: true
- id: debug-statements
always_run: true
- id: mixed-line-ending
args: ['--fix=lf']
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.12.9
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix, --show-fixes, --unsafe-fixes]
types_or: [python, pyi] # TODO enable for jupyter
exclude: ^ci/
- id: ruff-format
types_or: [python, pyi] # TODO enable for jupyter
exclude: ^ci/
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
exclude: ^(ci/|test_outputs/)
- repo: https://github.com/pre-commit/mirrors-prettier # This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
rev: 'v3.0.0-alpha.9-for-vscode'
hooks:
- id: prettier
exclude: (\.min\.(js|css)$|^ci/|^test_outputs/)