-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.63 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
# 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-added-large-files
- id: check-ast
- id: check-merge-conflict
- id: check-toml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/tcort/markdown-link-check
rev: "v3.10.3"
hooks:
# https://github.com/tcort/markdown-link-check#config-file-format
- id: markdown-link-check
args: ["--progress", "--config", ".markdown-link-check.json"]
- repo: https://github.com/markdownlint/markdownlint
rev: "v0.12.0"
hooks:
- id: markdownlint
# exclude: ^.github/
entry: mdl -c .markdownlint.json -r ~MD024,~MD033,~MD013,~MD034,~MD029,~MD007
- repo: local
hooks:
- id: black
name: Black formatter
description: "Black: The uncompromising Python code formatter"
entry: black
language: system
require_serial: true
types_or: [python, pyi]
- id: isort
name: Isort check
entry: isort
language: system
pass_filenames: true
types: [python]
- id: check-poetry
name: Poetry check
description: Validates the structure of the pyproject.toml file
entry: poetry check
language: system
pass_filenames: false
files: pyproject.toml
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes