-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy path.pre-commit-config.yaml
79 lines (79 loc) · 2.04 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args:
- '--allow-multiple-documents'
- id: check-json
- id: check-added-large-files
- id: check-symlinks
- id: destroyed-symlinks
- id: check-executables-have-shebangs
- id: requirements-txt-fixer
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
- repo: https://github.com/maxwinterstein/shfmt-py
rev: v3.7.0.1
hooks:
- id: shfmt
args:
- "--binary-next-line"
- "--case-indent"
- "--indent"
- "4"
- "--space-redirects"
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.1b3
hooks:
- id: hadolint
args:
- '--ignore'
- 'DL3007'
- '--ignore'
- 'DL3008'
- '--ignore'
- 'DL3013'
- '--ignore'
- 'DL3059'
types: [file]
files: "^tests/Dockerfile_.*"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
hooks:
- id: ruff
additional_dependencies:
- pytest
- pytest-shell-utilities
- requests
- types-requests
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies:
- pytest
- pytest-shell-utilities
- requests
- types-requests
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.31.0
hooks:
- id: check-github-workflows
- id: check-github-actions
- repo: local
hooks:
- id: permission-check
name: check permissions using pytest
entry: pytest -v -s -k test_permissions tests/test_00_minimal.py
language: python
pass_filenames: false
additional_dependencies:
- pytest
- pytest-shell-utilities
- requests