-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
66 lines (66 loc) · 1.72 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
repos:
- repo: local
hooks:
- id: no-print
name: No print
description: This hook prevents print function calls
entry: "print\\((?!.*allow-print)"
language: pygrep
types: [python]
exclude: "cli.py$"
- repo: https://github.com/ambv/black
rev: "23.3.0"
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/PyCQA/isort
rev: "5.11.5"
hooks:
- id: isort
- repo: https://github.com/pycqa/pydocstyle
rev: "6.3.0"
hooks:
- id: pydocstyle
args: ["--add-select=D213,D404", "--ignore=D202,D212,D406,D407,D203"]
exclude: "^test"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
args:
- --show-error-codes
exclude: ^test
- repo: https://github.com/pycqa/pylint
rev: "v2.17.2"
hooks:
- id: pylint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-json
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: name-tests-test
args: ["--django"]
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
- id: remove-tabs
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.6.0
hooks:
- id: markdownlint-cli2
language_version: system