-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
58 lines (57 loc) · 1.51 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
repos:
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/myint/autoflake.git
rev: v2.3.1
hooks:
- id: autoflake
args: [
"--in-place",
"--remove-all-unused-imports",
"--remove-unused-variable",
"--ignore-init-module-imports",
]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--force-single-line-imports]
- repo: https://github.com/myint/docformatter.git
rev: v1.7.5
hooks:
- id: docformatter
args: [
"--in-place",
"--wrap-summaries=80",
"--wrap-descriptions=80",
"--pre-summary-newline",
]
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/ikamensh/flynt/
rev: '1.0.1'
hooks:
- id: flynt
- repo: https://github.com/uktrade/pii-secret-check-hooks
rev: 0.0.0.36
hooks:
- id: pii_secret_filename
files: ''
language: python
language_version: python3.12
pass_filenames: true
require_serial: true
- id: pii_secret_file_content
files: ''
language: python
language_version: python3.12
pass_filenames: true
require_serial: true
- id: hooks_version_check
name: Checking local hooks against latest release
verbose: true
require_serial: true