forked from IMAP-Science-Operations-Center/sds-data-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
76 lines (76 loc) · 2.06 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
76 lines (76 loc) · 2.06 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
ci:
autofix_prs: false
autoupdate_schedule: "quarterly"
skip: [poetry-lock]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: mixed-line-ending
- id: trailing-whitespace
- id: no-commit-to-branch
args: [--branch, main, --branch, dev]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.15.20'
hooks:
- id: ruff
args: [--fix]
exclude: ^alembic/versions/
- id: ruff-format
exclude: ^alembic/versions/
- repo: https://github.com/python-poetry/poetry
rev: "2.4.1"
hooks:
- id: poetry-check
- id: poetry-lock
- repo: https://github.com/python-poetry/poetry-plugin-export
rev: "1.10.0"
hooks:
- id: poetry-export
name: export layer db requirements.txt
args:
[
"-f",
"requirements.txt",
"-o",
"lambda_layer/database/requirements.txt",
"--with",
"layer-database",
]
- id: poetry-export
name: export layer spice requirements.txt
args:
[
"-f",
"requirements.txt",
"-o",
"lambda_layer/spice/requirements.txt",
"--with",
"layer-spice",
]
- id: poetry-export
name: export layer processing requirements.txt
args:
[
"-f",
"requirements.txt",
"-o",
"sds_data_manager/lambda_code/processing/requirements.txt",
"--with",
"layer-processing",
]
- id: poetry-export
name: export layer idex processing requirements.txt
args:
[
"-f",
"requirements.txt",
"-o",
"sds_data_manager/lambda_code/idex_processing/requirements.txt",
"--with",
"layer-idex-processing",
]