generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (42 loc) · 1.23 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (42 loc) · 1.23 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
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: \.py$
exclude: _version\.py$
args:
- --license-filepath=LICENSE_HEADER.txt
- repo: local
hooks:
- id: ruff
name: ruff
entry: bash -c 'cd python/connector && uv run ruff check --fix'
language: system
types: [python]
pass_filenames: false
- id: ruff-format
name: ruff-format
entry: bash -c 'cd python/connector && uv run ruff format'
language: system
types: [python]
pass_filenames: false
- id: mypy
name: mypy
entry: bash -c 'cd python/connector && uv run mypy aurora_dsql_asyncpg aurora_dsql_psycopg aurora_dsql_psycopg2 dsql_core tests'
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types: [yaml]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.4
hooks:
- id: actionlint
- repo: https://github.com/awslabs/git-secrets
rev: 7d6b970cbd3c216353cb22b383b70c150140662e
hooks:
- id: git-secrets