-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (29 loc) · 911 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (29 loc) · 911 Bytes
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
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=2000']
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
args: [--config=.flake8]
- repo: local
hooks:
- id: check-spdx-license
name: Check SPDX License Headers
entry: python ./scripts/check_spdx.py
language: python
types_or: [python, javascript, jsx, ts, tsx, shell, svelte, batch, html, xml, yaml]
files: \.(py|js|ts|sh|svelte|bat|cmd|html|xml|yaml|yml)$
- id: check-dco
name: Check DCO Sign-off
entry: python ./scripts/check_dco.py
language: python
stages: [commit-msg]
pass_filenames: true