-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.77 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace # Trims trailing whitespace
- id: check-yaml # Validates YAML files
args: [--allow-multiple-documents]
- id: check-json # Validates JSON files
- id: check-toml # Validates TOML files
- id: check-added-large-files # Checks for files that are added to the repository that are larger than a threshold
- id: check-case-conflict # Checks for files that would conflict in case-insensitive filesystems
- id: check-merge-conflict # Checks for files that contain merge conflict strings
- id: detect-private-key # Check for the existence of private keys
- id: check-shebang-scripts-are-executable # Checks that scripts with a shebang are executable
- id: check-executables-have-shebangs # Checks that executables have shebangs
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck # Shell scripts conform to shellcheck
- id: shfmt # Check shell style with shfmt
exclude: |
(?x)^(
.*\.bats
)$
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.6.1
hooks:
- id: editorconfig-checker-system # Check editorconfig compliance
alias: ec
- repo: local
hooks:
- id: black
name: black
language: system
types: [python]
require_serial: true
entry: poetry run black
- id: isort
name: isort
language: system
types: [python]
require_serial: true
entry: poetry run isort --dont-order-by-type