-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (64 loc) · 2.11 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
70 lines (64 loc) · 2.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
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
exclude: ^attic/.*|^base/server-setups/$|^scripts/scratch.sh$
default_install_hook_types: ["pre-commit", "commit-msg"]
default_stages: ["pre-commit"]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: mixed-line-ending
args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
# - id: no-commit-to-branch
# args: ['--branch', 'main']
- repo: 'https://github.com/gruntwork-io/pre-commit'
rev: v0.1.30
hooks:
- id: 'shellcheck'
# args: ["--enable require-variable-braces,deprecate-which"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.0 # Specify the Ruff version
hooks:
- id: ruff-check # Linter hook
- id: ruff-format # Formatter hook
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
- id: flake8
args: [
'--max-line-length=88',
'--exclude=attic/*,files/cloudflare/*'
]
additional_dependencies: [wemake-python-styleguide >= 1.6.1]
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.16.5
hooks:
- id: commitizen
stages: [commit-msg]
- repo: local
hooks:
- id: encryption-check
name: Ansible Vault Encryption Check
description: Checks that vault files are encrypted
entry: /usr/local/bin/encryption-check.sh
files: ((^|/)vault|vault.y[a]{0,1}ml$|.vault$|_rsa$)
language: script
- id: powershell-check
name: Powershell Lint Check
description: Checks powershell scripts
entry: /data/share/bin/pwshellcheck.ps1
files: .ps1$
language: script
exclude: pwshellcheck.ps1$
...