-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.26 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
minimum_pre_commit_version: 2.9.3
default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
name: Check large files (>500kB)
args: ["--maxkb=500"]
- id: trailing-whitespace
name: Trim trailing whitespace
- id: end-of-file-fixer
name: Add empty line to end of file
- id: check-merge-conflict
name: Check unresolved merge conflicts
- id: check-json
name: Check JSON
- id: check-yaml
name: Check YAML
- id: check-toml
name: Check TOML
- id: check-xml
name: Check XML
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: Reorder python imports
- repo: local
hooks:
- id: yapf
name: Run yapf formatter
entry: yapf
language: system
types: [python]
- repo: local
hooks:
- id: pylint
name: Run pylint analysis
entry: pylint
language: system
types: [python]
exclude: 'panoptic_label_generator/models/.*'
exclude: 'panoptic_segmentation_model/external/.*|models/baseline_dino/.*'