forked from ByteDance-Seed/Depth-Anything-3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (59 loc) · 1.53 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (59 loc) · 1.53 KB
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
52
53
54
55
56
57
58
59
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.5.0
hooks:
- id: check-added-large-files
args:
- '--maxkb=125'
- id: check-ast
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: no-commit-to-branch
args:
- '--branch'
- 'master'
- id: pretty-format-json
exclude: '.*\.ipynb$'
args:
- '--autofix'
- '--indent'
- '4'
- id: trailing-whitespace
args:
- '--markdown-linebreak-ext=md'
- repo: 'https://github.com/pycqa/isort'
rev: 5.13.2
hooks:
- id: isort
args:
- '--settings-file'
- 'pyproject.toml'
- '--filter-files'
- repo: 'https://github.com/asottile/pyupgrade'
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py38-plus, --keep-runtime-typing]
- repo: 'https://github.com/psf/black.git'
rev: 24.3.0
hooks:
- id: black
args:
- '--config=pyproject.toml'
- repo: 'https://github.com/PyCQA/flake8'
rev: 7.0.0
hooks:
- id: flake8
args:
- '--config=.flake8'
- repo: 'https://github.com/myint/autoflake'
rev: v1.4
hooks:
- id: autoflake
args: [ '--remove-all-unused-imports', '--recursive', '--remove-unused-variables', '--in-place']