-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
73 lines (73 loc) · 1.97 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
71
72
73
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]
- repo: https://github.com/ambv/black
rev: 24.4.2
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
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.1.1
hooks:
- id: mypy
name: mypy (messaging)
files: ^telstra/messaging/
- id: mypy
name: mypy (tests)
files: ^tests/
- id: mypy
name: mypy (production-test)
files: ^production-test/
- repo: https://github.com/pre-commit/mirrors-pylint
rev: "v3.0.0a5"
hooks:
- id: pylint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.6"
hooks:
- exclude: ".vscode|.ts$"
id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
exclude: "sdk/package-lock.json"
- 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"]
exclude: "\/helpers.py$"
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.2
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