-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
76 lines (76 loc) · 1.92 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
exclude: src/caselawclient/xquery
repos:
- hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: forbid-submodules
- id: mixed-line-ending
- id: no-commit-to-branch
- id: trailing-whitespace
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
- hooks:
- args:
- --fix
- --exit-non-zero-on-fix
id: ruff
- id: ruff-format
repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
- hooks:
- entry: script/build_xquery_type_dicts
id: build-xquery-type-dicts
language: python
name: build-xquery-type-dicts
repo: local
- hooks:
- additional_dependencies:
- types-requests
- boto3-stubs[s3,sns]
- types-python-dateutil
- types-pytz
- types-lxml
- ds-caselaw-utils~=2.0.0
args:
- --strict
files: ^src/
id: mypy
name: mypy-src
repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
- hooks:
- additional_dependencies:
- types-requests
- boto3-stubs[s3,sns]
- types-python-dateutil
- types-pytz
- types-lxml
- ds-caselaw-utils~=2.0.0
exclude: ^smoketest/
id: mypy
name: mypy-tests
repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
- hooks:
- id: prettier
types_or:
- yaml
- json
- xml
- markdown
- scss
- javascript
repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
- hooks:
- id: commitizen
- id: commitizen-branch
stages:
- pre-push
repo: https://github.com/commitizen-tools/commitizen
rev: v4.1.0