-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
52 lines (48 loc) · 1.58 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
default_install_hook_types:
- pre-commit
- commit-msg
- pre-push
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
files: \.ya?ml$
- id: check-json
files: \.json$
exclude: ^aodn_cloud_optimised/config/dataset/dataset_template.json$
- id: end-of-file-fixer
exclude: '\.schema$'
- id: trailing-whitespace
- id: check-toml
- id: pretty-format-json
files: \.json$
args: ["--autofix", "--no-sort-keys"]
exclude: ^aodn_cloud_optimised/config/dataset/dataset_template.json$
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
hooks:
- id: check-jsonschema
files: ^aodn_cloud_optimised/config/dataset/.*\.json$
exclude: ^aodn_cloud_optimised/config/dataset/dataset_template.json$
args: ["--schemafile", "aodn_cloud_optimised/config/schema_validation_common.json"]
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
#exclude: ^aodn_cloud_optimised/bin/create_aws_registry_dataset.py$ # issue with black!
- repo: https://github.com/python-poetry/poetry
rev: '1.8.4'
hooks:
- id: poetry-check
args: ["--lock", "--quiet"] # Add --quiet to run poetry-check quietly
verbose: false
- id: poetry-export
args: ["-f", "requirements.txt", "--quiet"]
verbose: false
- id: poetry-lock
#args: ["--no-update"]
args: ["--check"]
verbose: true
- id: poetry-install
args: ["--quiet"]