-
Notifications
You must be signed in to change notification settings - Fork 23
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.27 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: end-of-file-fixer
files: 'repository_service_tuf_api/'
- id: trailing-whitespace
files: 'repository_service_tuf_api/'
- id: check-yaml
files: '.github/'
- repo: https://github.com/pycqa/flake8
rev: '7.1.1'
hooks:
- id: flake8
exclude: docs
- repo: https://github.com/PyCQA/isort
rev: '5.13.2'
hooks:
- id: isort
args: [-l79, --profile, black, --check, --diff]
- repo: https://github.com/psf/black
rev: '24.10.0'
hooks:
- id: black
args: [-l79, --check, --diff, .]
- repo: https://github.com/PyCQA/bandit
rev: '1.7.10'
hooks:
- id: bandit
args: ["-r", "repository_service_tuf_api"]
exclude: tests
- repo: local
hooks:
- id: tox-requirements
name: run requirements check from tox
description: Checks if `make requirements` is up-to-date
entry: tox -e requirements
language: system
files: ''
pass_filenames: false
verbose: true
- id: tox-precommit
name: run pre-commit version check from tox
description: Checks if `pre-commit autoupdate` is up-to-date
entry: tox -e precommit
language: system
pass_filenames: false
verbose: true