forked from sundeck-io/OpsCenter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.09 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
exclude: |
(?x)^(
app/ui/fakeperms.py$
)$
repos:
- 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
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-json
- id: pretty-format-json
args: ["--autofix"]
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.2
hooks:
- id: shellcheck
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.21.0
hooks:
- id: check-github-workflows
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.272
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix, --line-length=200 ]
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black