-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
113 lines (113 loc) · 2.85 KB
/
.pre-commit-config.yaml
File metadata and controls
113 lines (113 loc) · 2.85 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
repos:
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.7.1
hooks:
- id: check-github-actions
- id: check-github-workflows
- repo: local
hooks:
- id: poetry-check
name: poetry-check
entry: poetry
args: [check]
language: python
pass_filenames: false
files: pyproject.toml
- id: poetry-lock
name: poetry-lock
entry: poetry
args: [lock]
language: python
pass_filenames: false
files: pyproject.toml
- id: poetry-requirements
name: poetry-requirements
entry: poetry export -o requirements.txt --without-hashes
language: python
pass_filenames: false
files: ^(pyproject.toml|poetry.lock)$
- id: pre-commit-autoupdate
name: pre-commit-autoupdate
entry: pre-commit autoupdate
language: system
pass_filenames: false
files: .pre-commit-config.yaml
- id: cleanup-cache
name: cleanup-cache
entry: find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
language: system
pass_filenames: false
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.2.2
hooks:
- id: python-safety-dependencies-check
files: ^(requirements.txt)$
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 21.11b1
hooks:
- id: black
args: [--fast]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
hooks:
- id: blacken-docs
- repo: https://github.com/myint/docformatter
rev: v1.4
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries=100, --wrap-descriptions=100]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
entry: pflake8
exclude: ^test/.*
additional_dependencies:
- pyproject-flake8
- flake8-absolute-import
- flake8-annotations
- flake8-bandit
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- flake8-docstrings
- flake8-eradicate
- flake8-mutable
- flake8-no-pep420
- flake8-plugin-utils
- flake8-requirements
- flake8-return
- flake8-simplify
- flake8-sql
- flake8-type-checking
- flake8-typing-imports
- repo: https://github.com/johnfraney/flake8-markdown
rev: v0.3.0
hooks:
- id: flake8-markdown
# Manual hooks
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910-1
hooks:
- id: mypy
stages: [manual]
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v2.0.1
hooks:
- id: docker-compose-check
stages: [manual]
# Custom hooks for non-python files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: pretty-format-json
args: [--autofix, --indent=2, --no-ensure-ascii]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.2.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2', --preserve-quotes]