forked from nightlark/anchore-syft-wheel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 916 Bytes
/
.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
ci:
autofix_prs: true
autoupdate_schedule: weekly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
- id: check-docstring-first
- id: pretty-format-json
- id: check-json
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: [--safe, --quiet]
exclude: ^(src/anchore_syft/_version.py)
- repo: https://github.com/asottile/blacken-docs
rev: 1.15.0
hooks:
- id: blacken-docs
additional_dependencies: [black==22.12.0]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
exclude: ^(src/anchore_syft/_version.py)