-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (54 loc) · 1.61 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
ci:
autofix_prs: true
autoupdate_schedule: weekly
autoupdate_commit_msg: "chore: pre-commit autoupdate"
repos:
- repo: local
hooks:
- id: check-poetry-lock
# `pre-commit autoupdate` will update to older Poetry versions, so we
# use a local hook to avoid that bug:
# https://github.com/meltano/meltano/pull/7238#issuecomment-1409434351
name: check that `poetry.lock` conforms to `pyproject.toml`
entry: poetry lock --check
language: python
pass_filenames: false
additional_dependencies:
- "poetry==1.6.1"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: check-json
exclude: \.vscode/launch.json$
- id: check-toml
- id: check-yaml
exclude: ^(.+/)?template\.ya?ml$
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: (.*\.svg)
- id: trailing-whitespace
exclude: ^(.bumpversion.cfg)$
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: "v1.5.4"
hooks:
- id: remove-crlf
- id: remove-tabs
args: ["--whitespaces-count", "4"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.289"
hooks:
- id: ruff
args: ["--fix", "--exit-non-zero-on-fix", "--show-fixes"]
- id: ruff
name: Ruff format
entry: ruff format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.5.1"
hooks:
- id: mypy
exclude: |
(?x)^(
.*tests.*|
)$
additional_dependencies:
- "types-PyYAML==6.0.12.2"