-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
35 lines (32 loc) · 860 Bytes
/
.pre-commit-hooks.yaml
File metadata and controls
35 lines (32 loc) · 860 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
35
# SlimStack pre-commit hooks
# Usage: Add to your .pre-commit-config.yaml:
#
# repos:
# - repo: https://github.com/arceuzvx/SlimStack
# rev: v0.1.0
# hooks:
# - id: slimstack-scan-py
# - id: slimstack-scan-node
- id: slimstack-scan-py
name: SlimStack Python dependency check
entry: slim scan -py --fail-on-unused
language: python
types: [python]
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: slimstack-scan-node
name: SlimStack Node.js dependency check
entry: slim scan -node --fail-on-unused
language: python
types_or: [javascript, jsx, ts, tsx]
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: slimstack-docker
name: SlimStack Dockerfile analysis
entry: slim docker
language: python
files: Dockerfile
pass_filenames: false
stages: [pre-commit]