blob: baf458264aa539f0b6e7f5b4cf582e6c1a645ca4 [file] [log] [blame]
Georgios Pinitasa7171102021-08-17 12:54:59 +01001fail_fast: false
2
3files: ^python/
4repos:
5 - repo: https://github.com/pre-commit/pre-commit-hooks
6 rev: v4.0.1
7 hooks:
8 - id: check-yaml
9 stages: [commit]
10 - id: check-json
11 stages: [commit]
12 - id: end-of-file-fixer
13 stages: [commit]
14 exclude: \.cp?p?$
15 - id: requirements-txt-fixer
16 stages: [commit]
17 - id: trailing-whitespace
18 stages: [commit]
19 - id: mixed-line-ending
20 args: ['--fix=lf']
21 description: Forces to replace line ending by the UNIX 'lf' character.
22 - id: detect-private-key
23 stages: [commit]
24 - id: check-executables-have-shebangs
25 stages: [commit]
26 - id: check-added-large-files
27 args: ['--maxkb=100']
28 stages: [commit]
29 - repo: https://github.com/asottile/reorder_python_imports
30 rev: v2.6.0
31 hooks:
32 - id: reorder-python-imports
33 args: [--py3-plus]
34 pass_filenames: true
35 - repo: https://github.com/psf/black
36 rev: 21.7b0
37 hooks:
38 - id: black
39 - repo: https://github.com/asottile/blacken-docs
40 rev: v1.8.0
41 hooks:
42 - id: blacken-docs
43 additional_dependencies: [black==21.7b0]
44 - repo: https://github.com/asottile/pyupgrade
45 rev: v2.7.2
46 hooks:
47 - id: pyupgrade
48 args: [--py36-plus]
49 - repo: https://github.com/markdownlint/markdownlint
50 rev: v0.9.0
51 hooks:
52 - id: markdownlint
53 args: ["--style", ".mdl.rb"]