Skip to content

Commit 1a006a5

Browse files
committed
added pre-commit hook
1 parent 7ff917a commit 1a006a5

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
default_language_version:
2+
python: python3
3+
default_stages:
4+
- pre-commit
5+
- pre-push
6+
repos:
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v6.0.0
9+
hooks:
10+
- id: trailing-whitespace
11+
- id: end-of-file-fixer
12+
- id: check-json
13+
- id: check-yaml
14+
- id: check-toml
15+
- id: check-added-large-files
16+
- id: check-merge-conflict
17+
- id: debug-statements
18+
- id: mixed-line-ending
19+
- id: no-commit-to-branch
20+
args: [--branch, main]
21+
# - repo: https://github.com/astral-sh/ruff-pre-commit
22+
# rev: v0.15.4
23+
# hooks:
24+
# - id: ruff-check
25+
# exclude: '(dev/.*|.*_)\.py$'
26+
# args:
27+
# - --exit-non-zero-on-fix
28+
# - id: ruff-format
29+
- repo: https://github.com/executablebooks/mdformat
30+
rev: 1.0.0
31+
hooks:
32+
- id: mdformat
33+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
34+
rev: v2.16.0
35+
hooks:
36+
- id: pretty-format-yaml
37+
args: [--autofix, --preserve-quotes]
38+
- id: pretty-format-toml
39+
args: [--autofix]
40+
- repo: https://github.com/gitleaks/gitleaks
41+
rev: v8.30.0
42+
hooks:
43+
- id: gitleaks

0 commit comments

Comments
 (0)