forked from bergercookie/syncall
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
101 lines (93 loc) · 2.76 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
101 lines (93 loc) · 2.76 KB
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
97
98
99
100
101
# 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
types: [markdown]
args: ["--max-retries", "100", "-v"]
- repo: https://github.com/markdownlint/markdownlint
rev: "v0.12.0"
hooks:
- id: markdownlint
exclude: ^.github/
entry: mdl -r ~MD033,~MD013,~MD034,~MD029,~MD007
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.37.2"
hooks:
- id: check-github-workflows
- repo: local
hooks:
- id: just-format
name: just format
description: "Make sure that the justfile is formatted"
entry: just self-fmt
language: system
pass_filenames: false
- id: _check-devbox-activated
name: check devbox is activated
description: "Make sure that the devbox is activated before attempting to commit"
entry: bootstrap/pre-commit/check-devbox-activated.py
language: system
pass_filenames: false
- 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]
require_serial: true
- id: ruff
name: Ruff Format
entry: ruff
args: ["format", "--force-exclude"]
language: system
types_or: [python, pyi]
require_serial: true
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes