-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
70 lines (65 loc) · 1.8 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
65
66
67
68
69
70
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: ["--py36-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
args:
[
"--exclude=.eggs/,*.egg,build",
"--max-line-length=88",
"--max-complexity=10",
"--select=B,C,E,F,W,T,N8",
"--count",
"--statistics",
]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
entry: reorder-python-imports
language: python
types: [python]
minimum_pre_commit_version: "0.15.0"