-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
79 lines (71 loc) · 2.04 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
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.3"
hooks:
- id: editorconfig-checker
alias: ec
args:
- -disable-indent-size
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.3.4"
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/asottile/blacken-docs
rev: "1.16.0"
hooks:
- id: blacken-docs
additional_dependencies: ["black==24.3.0"]
- repo: https://github.com/sirosen/check-jsonschema
rev: "0.28.0"
hooks:
- id: check-github-workflows
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.9.0"
hooks:
- id: mypy
pass_filenames: false
additional_dependencies:
- typing-extensions==4.10.0
- pytest==7.4.3
- pydantic==1.10.13
- hypothesis==6.99.12
- types-setuptools==69.2.0.20240317
- types-requests==2.31.0.20240311
- repo: https://github.com/seddonym/import-linter
rev: "v2.0"
hooks:
- id: import-linter
entry: env PYTHONPATH=src lint-imports --verbose
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
alias: format-markdown
types: [ markdown ]
additional_dependencies:
args:
- --parser=markdown
- --print-width=88
- --prose-wrap=always
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
args: ["--no-build-isolation"]
additional_dependencies:
- setuptools==75.1.0
- setuptools-scm==8.1.0
- wheel==0.44.0