-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
.pre-commit-config.yaml
96 lines (91 loc) · 2.76 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
93
94
95
96
# 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
exclude: ^misc/
- id: check-ast
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
exclude: ^tests/test_data/sample_items.yaml
- id: debug-statements
exclude: syncall/pdb_cli_utils.py
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/lycheeverse/lychee.git
rev: v0.15.1
hooks:
- id: lychee-docker
# Optionally include additional CLI arguments
# args: ["--no-progress", "--exclude", "file://"]
types: [markdown]
- repo: https://github.com/markdownlint/markdownlint
rev: "v0.12.0"
hooks:
- id: markdownlint
exclude: ^.github/
entry: mdl -r ~MD033,~MD013,~MD034,~MD029,~MD007
- 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: pyupgrade
name: Pyupgrade
description: Automatically upgrade syntax for newer versions.
entry: pyupgrade
args: ["--py38-plus"]
types_or: [python]
language: system
# - 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: ruff
name: Ruff Linter
entry: ruff
args: ["check", "--fix"]
language: system
types_or: [python, pyi]
- id: poetry-check
name: Poetry check
entry: poetry check
language: system
pass_filenames: false
files: "pyproject.toml|poetry.lock"
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes