-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
44 lines (43 loc) · 1.16 KB
/
.pre-commit-config.yaml
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
# File introduces automated checks triggered on git events
# to enable run `pip install pre-commit && pre-commit install`
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
- id: check-json
exclude: |
(?x)^(
^tests/data/json/ill_formed.json
)$
- id: check-added-large-files
args: [--maxkb=8192]
- id: check-yaml
exclude: |
(?x)^(
^conda.recipe/meta.yaml
)$
- id: debug-statements
- id: requirements-txt-fixer
- id: check-merge-conflict
- id: end-of-file-fixer
- id: sort-simple-yaml
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
args: ['--line-length=119']
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
name: yamllint
description: This hook runs yamllint.
entry: yamllint
language: python
types: [file, yaml]
- repo: https://github.com/kynan/nbstripout
rev: 0.8.0
hooks:
- id: nbstripout