-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (27 loc) · 737 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (27 loc) · 737 Bytes
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
---
default_install_hook_types:
- commit-msg
- pre-commit
- pre-push
exclude: ^(.*(\.?venv.*)/)
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.0
hooks:
- id: ruff-format
name: ☕️ Use Ruff to format code
- id: ruff-check
name: ☕️ Use Ruff to lint code
args: [--fix]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
name: ☕️ Check for JSON syntax errors
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.11.0
hooks:
- id: shellcheck
name: ☕️ Ensure Shell Scripts are good with ShellCheck
files: .*\.sh$
args: [-x, -e, SC1017]