-
Notifications
You must be signed in to change notification settings - Fork 17
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.18 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
description: Simply check whether files parse as valid python.
- id: trailing-whitespace
description: Trims trailing whitespace
- id: end-of-file-fixer
description: Makes sure files end in a newline and only a newline.
- id: check-added-large-files
args: ['--maxkb=5000']
description: Prevent giant files from being committed.
- id: check-case-conflict
description: Check for files with names that would conflict on case-insensitive filesystems like MacOS/Windows.
- id: check-yaml
description: Check yaml files for syntax errors.
- repo: https://github.com/jsh9/pydoclint
rev: 0.5.3
hooks:
- id: pydoclint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: python
types: [python]