cdk-serverless-clamscan
Version:
Serverless architecture to virus scan objects in Amazon S3.
35 lines (34 loc) • 946 B
YAML
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