forked from python/python-docs-tr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (39 loc) · 1.13 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
repos:
- repo: local
hooks:
- id: style-print
name: ""
entry: "style-print 'Please report any issues at: https://github.com/python/python-docs-tr/issues' 'rUBI{y}'"
language: python
additional_dependencies: ["style-print"]
pass_filenames: false
verbose: true
- id: lint
name: Run sphinx-lint on .po files
entry: sphinx-lint
language: python
additional_dependencies: ["sphinx-lint"]
files: \.po$
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: Run black on Python files
args: ["--line-length=140", "--target-version=py311"]
files: \.py$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
name: Run prettier on .yml and .yaml files
types: [yaml]