-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
50 lines (38 loc) · 1 KB
/
.pre-commit-config.yaml
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
repos:
- repo: local
hooks:
- id: tests
name: Run Unit Tests
entry: scripts/run_tests.sh
language: system
types: [python]
stages: [push] # required additional setup: pre-commit install && pre-commit install -t pre-push
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
# Git
- id: forbid-new-submodules
# Files
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-added-large-files
- id: check-symlinks
- id: end-of-file-fixer
# Syntax
- id: check-yaml
- id: check-toml
- id: check-ast
# Code
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
# Docs
- id: check-vcs-permalinks
- repo: https://github.com/akaihola/darker
rev: 1.7.2
hooks:
- id: darker
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.4'
hooks:
- id: ruff