-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.57 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-json
exclude: '^\.vscode/settings\.json$'
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: pretty-format-json
exclude: '^\.vscode/settings\.json$'
args: ["--autofix"]
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.2
hooks:
- id: check-jsonschema
name: "tactic schema"
files: ^tactic/.*\.json$
args: ["--schemafile", "schema/tactic.schema.json"]
- id: check-jsonschema
name: "entity schema"
files: ^entity/.*\.json$
args: ["--schemafile", "schema/entity.schema.json"]
- id: check-jsonschema
name: "technique schema"
files: ^technique/.*\.json$
args: ["--schemafile", "schema/technique.schema.json"]
- id: check-jsonschema
name: "platform schema"
files: ^platform/.*\.json$
args: ["--schemafile", "schema/platform.schema.json"]
- id: check-jsonschema
name: "procedure schema"
files: ^procedure/.*\.json$
args: ["--schemafile", "schema/procedure.schema.json"]
- id: check-jsonschema
name: "mitigation schema"
files: ^mitigation/.*\.json$
args: ["--schemafile", "schema/mitigation.schema.json"]