forked from bergercookie/syncall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
92 lines (92 loc) · 2.79 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# 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: "v3.2.0"
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
exclude: ^tests/test_data/sample_items.yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
# - id: check-symlinks
# - id: pretty-format-json
# args: ["--autofix"]
# - id: sort-simple-yaml
- repo: https://github.com/tcort/markdown-link-check
rev: "v3.10.0"
hooks:
# https://github.com/tcort/markdown-link-check#config-file-format
- id: markdown-link-check
args: ["--config", ".markdown-link-check.json"]
- repo: https://github.com/markdownlint/markdownlint
rev: "v0.11.0"
hooks:
- id: markdownlint
exclude: ^.github/
entry: mdl -r ~MD033,~MD013,~MD034
- repo: local
hooks:
- id: check-github-workflows
name: Validate GitHub Workflows
description: 'Validate GitHub Workflows against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.github-workflows
language: python
files: ^\.github/workflows/
types: [yaml]
- id: black
name: Black formatter
description: "Black: The uncompromising Python code formatter"
entry: black
language: system
minimum_pre_commit_version: 2.9.2
require_serial: true
types_or: [python, pyi]
- id: pycln
name: Pyclean - Find redundant imports
entry: pycln
language: system
pass_filenames: true
types_or: [python, pyi]
# - id: mypy
# name: Mypy check
# entry: mypy
# language: system
# pass_filenames: true
# types_or: [python, pyi]
# - id: pyright
# name: Pyright check
# entry: pyright
# language: system
# pass_filenames: true
# types_or: [python, pyi]
# - id: Pylint check
# name: pylint
# entry: pylint
# language: system
# pass_filenames: true
# types: [python]
# exclude: ^tests/
- 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