-
Notifications
You must be signed in to change notification settings - Fork 44
/
.pre-commit-config.yaml
60 lines (56 loc) · 1.62 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
51
52
53
54
55
56
57
58
59
60
############################
# Pre-commit configuration #
############################
# Install via `pip install pre-commit`
# This is run as a precondition to commits, run manually via `pre-commit run`
# When adding new hooks, it may make sense to once run
# `pre-commit run --all-files` as by default only changed files are checked
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
description: The uncompromising code formatter
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- id: isort
name: isort (cython)
types: [cython]
- id: isort
name: isort (pyi)
types: [pyi]
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-black
- id: nbqa-pyupgrade
args: [--py36-plus]
- id: nbqa-isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
description: Check yaml files for parseable syntax
- id: check-added-large-files
description: Prevent large files from being committed
- id: check-merge-conflict
description: Check for files that contain merge conflict strings
- id: check-symlinks
description: Check for symlinks which do not point to anything
- id: trailing-whitespace
description: Trim trailing whitespaces
- id: end-of-file-fixer
description: Fix empty lines at ends of files
- id: detect-private-key
description: Detects the presence of private keys
- repo: local
hooks:
- id: style
name: Check style
description: Check style
entry: tox -e flake8 --
language: system
types: [python]