-
-
Notifications
You must be signed in to change notification settings - Fork 94
/
.pre-commit-config.yaml
55 lines (51 loc) · 1.49 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
default_stages: [commit]
fail_fast: false
exclude: |
(?x)(
docs/yaml_search.json
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: mkdocs.yml
- id: check-ast
- id: check-docstring-first
- id: check-merge-conflict
- id: mixed-line-ending
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.11.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
args: [--print-width=88, --tab-width=4]
exclude: |
(?x)(
docs/cli.md|
PULL_REQUEST_TEMPLATE.md|
.github/semantic_release/release_notes.hbs
)
additional_dependencies:
- prettier
- repo: local
hooks:
- id: format
name: format
description: Runs Code Auto-Formatters
entry: hatch run lint:fmt
language: system
pass_filenames: false
- id: lint
name: lint
description: Runs Code Linters
entry: hatch run lint:style
language: system
pass_filenames: false
require_serial: false