generated from timoguin/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
32 lines (32 loc) · 943 Bytes
/
.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
# pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.11b1
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.6b0]
# Disable flakehell for now due to import bug with newer flake8
# https://github.com/flakehell/flakehell/issues/22
# - repo: https://github.com/flakehell/flakehell
# rev: v.0.9.0
# hooks:
# - name: Run flakehell static analysis tool
# id: flakehell