-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
51 lines (51 loc) · 1.57 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
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 ]
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/psf/black
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/wieczorek1990/pyproject-flake8
rev: 33037343b498c4770f4f4a2de3675dbc1da74598
hooks:
- id: pyproject-flake8
args: [ --config=pyproject.toml ]
additional_dependencies: [flake8==5.0.4]
- repo: https://github.com/uktrade/fitness-functions
fail_fast: true
rev: '1.1'
hooks:
- id: fitness-functions-run
pass_filenames: false
args: [ '.', 'trade_remedies_api' ]
- id: fitness-functions-publish
pass_filenames: false
args: [ '.' ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: mixed-line-ending
name: Replaces line endings with the most commonly used one
- id: detect-private-key
name: Detects for the presence of private keys in the code