-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.pre-commit-config.yaml
61 lines (61 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.1
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi, jupyter]
args: [ --fix ]
- id: ruff
types_or: [python, pyi, jupyter]
name: sort imports with ruff
args: [--select, I, --fix]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: local
hooks:
- id: check-added-large-files
name: Check for added large files
entry: check-added-large-files
language: system
- id: check-toml
name: Check Toml
entry: check-toml
language: system
types: [toml]
- id: check-yaml
exclude: docs/
name: Check Yaml
entry: check-yaml
language: system
types: [yaml]
- id: end-of-file-fixer
exclude: docs/
name: Fix End of Files
entry: end-of-file-fixer
language: system
types: [text]
stages: [pre-commit, pre-push, manual]
- id: trailing-whitespace
exclude: docs/
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [pre-commit, pre-push, manual]
- repo: https://github.com/kynan/nbstripout
rev: 0.4.0
hooks:
- id: nbstripout
name: nbstripout
description: "nbstripout: strip output from Jupyter and IPython notebooks"
entry: nbstripout
language: python
types: [jupyter]
- repo: https://github.com/jsh9/pydoclint
rev: 0.6.0
hooks:
- id: pydoclint
args: [--style=google, --config=pyproject.toml, src/]