-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
47 lines (47 loc) · 1.32 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
repos:
- repo: https://github.com/uktrade/pii-secret-check-hooks
rev: 0.0.0.36
hooks:
- id: pii_secret_filename
files: ''
language: python
pass_filenames: true
require_serial: true
- id: pii_secret_file_content
files: ''
language: python
pass_filenames: true
require_serial: true
- id: pii_secret_file_content_ner
files: ''
language: python
args: [--ner_output_file=ner_output_file.txt] # uncomment to output NER entities
pass_filenames: true
require_serial: true
- id: hooks_version_check
name: Checking local hooks against latest release
verbose: true
require_serial: true
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py311-plus]
# The end_to_end directory runs under python 3.8 and isn't suitable for pyupgrade
exclude: end_to_end
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [
flake8-datetime-import==0.1.0,
]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort