Skip to content

Commit 0bb2a70

Browse files
committed
git hooks
1 parent 070846d commit 0bb2a70

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.pre-commit-config.yaml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Install with: pre-commit install && pre-commit install -t pre-push
2+
repos:
3+
4+
- repo: local
5+
hooks:
6+
7+
- id: tests
8+
name: Run Tests
9+
entry: scripts/run_tests.sh
10+
language: system
11+
types: [python]
12+
stages: [push]
13+
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v3.3.0
16+
hooks:
17+
18+
# Git
19+
- id: forbid-new-submodules
20+
21+
# Files
22+
- id: check-byte-order-marker
23+
- id: check-executables-have-shebangs
24+
- id: check-added-large-files
25+
- id: check-symlinks
26+
- id: end-of-file-fixer
27+
28+
# Syntax
29+
- id: check-yaml
30+
- id: check-toml
31+
- id: check-ast
32+
33+
# Code
34+
- id: check-merge-conflict
35+
- id: debug-statements
36+
- id: detect-private-key
37+
38+
- repo: https://github.com/akaihola/darker
39+
rev: 1.7.2
40+
hooks:
41+
- id: darker
42+
args: ["--check"]
43+
stages: [push]
44+
- id: darker
45+
stages: [commit]
46+
47+
- repo: https://github.com/astral-sh/ruff-pre-commit
48+
rev: 'v0.1.4'
49+
hooks:
50+
- id: ruff

0 commit comments

Comments
 (0)