-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
33 lines (33 loc) · 980 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: .+.diff$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: mixed-line-ending
args: [--fix=lf]
- id: check-json
- id: pretty-format-json
args: [--autofix, --no-sort-keys, --no-ensure-ascii]
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: 'v2.0.2'
hooks:
- id: autopep8
args: [--in-place, --max-line-length=120]
- repo: https://github.com/PyCQA/pylint
rev: 'v3.0.0a6'
hooks:
- id: pylint
- repo: local
hooks:
- id: license-tools
name: Check license headers
entry: ./lictool
language: python
types: [text]
require_serial: false
additional_dependencies: ['jinja2']