forked from juftin/camply
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (50 loc) · 1.47 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
default_stages: [commit]
fail_fast: false
exclude: |
(?x)(
docs/yaml_search.json
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- 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.9.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.9-for-vscode
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 format
language: system
pass_filenames: false
- id: lint
name: lint
description: Runs Code Linters
entry: hatch run format
language: system
pass_filenames: false
require_serial: false