-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.38 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
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_worker/'
- id: trailing-whitespace
files: 'repository_service_tuf_worker/'
- id: check-yaml
files: '.github/'
- repo: https://github.com/pycqa/flake8
rev: '7.1.1'
hooks:
- id: flake8
exclude: repository_service_tuf_worker/__init__.py|venv|.venv|setting.py|.git|.tox|dist|docs|/*lib/python*|/*egg|build|tools|alembic
- 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", "tuf_repository_service_worker"]
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
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