forked from awslabs/cdk-serverless-clamscan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (34 loc) · 946 Bytes
/
.pre-commit-config.yaml
File metadata and controls
34 lines (34 loc) · 946 Bytes
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
repos:
- repo: https://github.com/ambv/black
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
- id: trailing-whitespace
exclude: ^API.md||.github/$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
hooks:
- id: eslint
files: \.[jt]sx?$
types: [file]
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: v1.1.1
hooks:
- id: dockerfile_lint
- repo: local
hooks:
- id: pytest
name: pytest
entry: bash -c 'cd assets/lambda/code/scan && python -m venv .venv && .venv/bin/pip install -r requirements.test.in && .venv/bin/python -m pytest'
language: system
types: [python]
pass_filenames: false
always_run: true