-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
51 lines (43 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
50
51
# Copyright (C) 2024 Mitsubishi Electric Research Laboratories (MERL)
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# Pre-commit configuration. See https://pre-commit.com
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-json
exclude: templates.*/python/.vscode/settings.json
- id: check-added-large-files
args: ['--maxkb=5000']
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.12.3
hooks:
- id: check-git-config-email
args: ['--domains', 'merl.com']
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
args:
- --line-length=120
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files", "--line-length", "120", "--skip-gitignore"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
# Black compatibility
args: ["--max-line-length=120", "--extend-ignore=E203"]