1
1
repos :
2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v4.4 .0
3
+ rev : v5.0 .0
4
4
hooks :
5
- - id : trailing-whitespace
6
- - id : end-of-file-fixer
5
+ - id : trailing-whitespace # Trailing whitespace checker
6
+ - id : end-of-file-fixer # Ensure files end in a newline
7
7
- id : check-json
8
- - id : check-yaml
8
+ - id : check-yaml # Check YAML files for syntax errors only
9
+ args : [--unsafe, --allow-multiple-documents]
9
10
- id : check-toml
10
- # - id: check-added-large-files
11
- - id : debug-statements
11
+ # - id: check-added-large-files
12
+ - id : debug-statements # Check for debugger imports and py37+ breakpoint()
12
13
- id : mixed-line-ending
14
+ - id : no-commit-to-branch # Prevent committing to main / master
15
+ - id : check-merge-conflict # Check for files that contain merge conflict
16
+ exclude : /README\.rst$|^docs/.*\.rst$
13
17
- repo : https://github.com/PyCQA/isort
14
- rev : 5.12.0
18
+ rev : 5.13.2
15
19
hooks :
16
20
- id : isort
21
+ args :
22
+ - -l 110
23
+ - --force-single-line-imports
24
+ - --profile black
17
25
- repo : https://github.com/psf/black
18
- rev : 23.9.1
26
+ rev : 24.8.0
19
27
hooks :
20
28
- id : black
29
+ args : [--line-length=110]
21
30
- repo : https://github.com/keewis/blackdoc
22
31
rev : v0.3.8
23
32
hooks :
24
33
- id : blackdoc
25
34
additional_dependencies : [black==23.3.0]
26
- - repo : https://github.com/PyCQA/flake8
27
- rev : 6.1.0
28
- hooks :
29
- - id : flake8
35
+ exclude : xr_engine_profile_rst\.py
36
+ - repo : https://github.com/astral-sh/ruff-pre-commit
37
+ rev : v0.6.9
38
+ hooks :
39
+ - id : ruff
40
+ exclude : ' (dev/.*|.*_)\.py$'
41
+ args :
42
+ - --line-length=110
43
+ - --fix
44
+ - --exit-non-zero-on-fix
45
+ - --preview
30
46
- repo : https://github.com/executablebooks/mdformat
31
47
rev : 0.7.14
32
48
hooks :
@@ -37,11 +53,11 @@ repos:
37
53
hooks :
38
54
- id : pretty-format-yaml
39
55
args : [--autofix, --preserve-quotes]
40
- - id : pretty-format-toml
41
- args : [--autofix]
42
- - repo : https://github.com/PyCQA/pydocstyle.git
43
- rev : 6.1.1
44
- hooks :
45
- - id : pydocstyle
46
- additional_dependencies : [toml]
47
- exclude : tests|docs
56
+ - repo : https://github.com/sphinx-contrib/sphinx-lint
57
+ rev : v1.0.0
58
+ hooks :
59
+ - id : sphinx-lint
60
+ - repo : https://github.com/tox-dev/pyproject-fmt
61
+ rev : " v2.5.0 "
62
+ hooks :
63
+ - id : pyproject-fmt
0 commit comments