Skip to content

Commit 077eef7

Browse files
moar git pre-commit hooks <3
1 parent e33e337 commit 077eef7

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

.pre-commit-config.yaml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
repos:
2+
# checks for secrets via rules (gitleaks.toml)
23
- repo: https://github.com/zricethezav/gitleaks
3-
rev: v8.2.0
4+
rev: v8.9.0
45
hooks:
56
- id: gitleaks
7+
- repo: https://github.com/ambv/black
8+
rev: 22.6.0
9+
hooks:
10+
- id: black
11+
- repo: https://gitlab.com/pycqa/flake8
12+
rev: 3.9.2
13+
hooks:
14+
- id: flake8
15+
- repo: https://github.com/timothycrosley/isort
16+
rev: 5.10.1
17+
hooks:
18+
- id: isort
19+
- repo: https://github.com/pre-commit/pre-commit-hooks
20+
rev: v4.3.0
21+
hooks:
22+
- id: check-yaml
23+
- id: check-added-large-files
24+
args: ['--maxkb=1024']
25+
- id: check-docstring-first
26+
- id: check-executables-have-shebangs
27+
- id: check-merge-conflict
28+
- id: check-shebang-scripts-are-executable
29+
- id: check-symlinks
30+
- id: check-toml
31+
- id: check-yaml
32+
args: [--unsafe]
33+
- id: debug-statements
34+
- id: destroyed-symlinks
35+
- id: detect-private-key
36+
- id: end-of-file-fixer
37+
- id: fix-byte-order-marker
38+
- id: mixed-line-ending
39+
- id: name-tests-test
40+
- id: pretty-format-json
41+
args: ['--autofix', '--indent=2', '--no-sort-keys']
42+
- id: requirements-txt-fixer
43+
- id: trailing-whitespace

0 commit comments

Comments
 (0)