-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
54 lines (49 loc) · 1.17 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
49
50
51
52
53
54
repos:
# YAML
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
# Python
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/myint/autoflake
rev: v2.2.0
hooks:
- id: autoflake
args:
- --in-place
- --remove-unused-variables
- --remove-all-unused-imports
- --expand-star-imports
- --ignore-init-module-imports
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
args: [
"--check-untyped-defs",
"--ignore-missing-imports",
"--scripts-are-modules",
"--python-version=3.11",
]
additional_dependencies: ["types-requests", "types-python-dateutil"]
language_version: python3.11
# Markdown
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.36.0
hooks:
- id: markdownlint
args: ["--fix"]
# GitHub Actions
- repo: https://github.com/bridgecrewio/checkov.git
rev: 2.4.14
hooks:
- id: checkov
files: .+
verbose: false