-
Notifications
You must be signed in to change notification settings - Fork 52
/
.pre-commit-config.yaml
58 lines (52 loc) · 1.6 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
---
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: Check code formatting (black)
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
name: Check code formatting (flake8)
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: Check the order of your imports (isort)
additional_dependencies: [toml]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
hooks:
- id: doc8
name: Checks the style of the documentation (doc8)
args: [--max-line-length, "100"]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
hooks:
- id: yamllint
name: Check YAML syntax (yamllint)
args: [--strict]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
name: Check whether files parse a valid Python (check-ast)
- id: check-docstring-first
name: Check the docstring placement (check-docstring-first)
- id: check-toml
name: Check the TOML syntax (check-toml)
- id: check-yaml
name: Check the YAML syntax (check-yaml)
- id: debug-statements
name: Check for debugger imports and breakpoints (debug-statements)
- id: end-of-file-fixer
name: Fix end of files (end-of-file-fixer)
- id: trailing-whitespace
name: Trim trailing whitespace (trailing-whitespace)