-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
64 lines (59 loc) · 1.86 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
64 lines (59 loc) · 1.86 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
60
61
62
63
64
default_language_version:
python: python3
ci:
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
autoupdate_schedule: quarterly
# submodules: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- id: check-yaml
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-toml
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-added-large-files
args: ['--maxkb=1024']
- id: detect-private-key
- id: forbid-new-submodules
- id: pretty-format-json
args: ['--autofix', '--no-sort-keys', '--indent=4']
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.5 # ruff version, keep synced with the ruff pin in pyproject.toml's testing extra
hooks:
- id: ruff-check
args: ["--fix"]
exclude: |
(?x)(
^versioneer.py|
^monai/_version.py
)
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.5.1 # Black version, keep synced with the black pin in pyproject.toml's testing extra
hooks:
- id: black
language_version: python3
# black will be given individual file names and so will ignore the excludes in pyproject.toml
exclude: |
(?x)(
^versioneer.py|
^monai/_version.py
)
- repo: https://github.com/pycqa/isort
rev: 9.0.1 # isort version, keep synced with the isort pin in pyproject.toml's testing extra
hooks:
- id: isort
name: isort (python)
exclude: |
(?x)(
^versioneer.py|
^monai/_version.py
)