-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (41 loc) · 1.11 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (41 loc) · 1.11 KB
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
---
exclude: '^template/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-case-conflict
- id: check-vcs-permalinks
- id: forbid-new-submodules
- id: mixed-line-ending
- id: check-merge-conflict
- id: detect-private-key
- id: detect-aws-credentials
args: ['--allow-missing-credentials'] # Avoid failure on CI
- id: check-toml
- id: check-yaml
- id: check-json
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.5
hooks:
- id: shellcheck
name: Shellcheck
args: ["-f", "gcc"] # output filename:linenum:colnum (clickable)
# Actual Python Linters
- repo: https://github.com/python-poetry/poetry
rev: 1.6.1
hooks: # Validate poetry package + ensure lockfile updated
- id: poetry-check
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
name: Black (Python formatter)
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint-fix