-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
64 lines (59 loc) · 1.7 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
61
62
63
64
default_language_version:
python: python
default_stages: [commit, push, manual]
repos:
- repo: https://github.com/ambv/black
rev: 22.12.0
hooks:
- id: black
name: black
entry: black
require_serial: true
types: [python]
files: \.pyi?$
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: ["--py37-plus"]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black]
language: python
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: mixed-line-ending
- id: detect-private-key
- id: end-of-file-fixer
exclude: docs/notebooks/
- id: trailing-whitespace
types: [text]
- id: debug-statements
name: Debug Statements (Python)
description: Check for debugger imports and py37+ `breakpoint()` calls in python source.
entry: debug-statement-hook
language: python
types: [python]
- repo: https://github.com/pycqa/flake8
rev: "6.0.0"
hooks:
- id: flake8
language: python
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
name: Reorder python imports
description: This hook reorders imports in python files.
entry: reorder-python-imports
language: python
types: [python]
minimum_pre_commit_version: "0.15.0"
exclude: (examples|setup.py)