3
3
autoupdate_schedule : quarterly
4
4
repos :
5
5
- repo : https://github.com/pre-commit/pre-commit-hooks
6
- rev : v4.3 .0
6
+ rev : v5.0 .0
7
7
hooks :
8
8
- id : check-yaml
9
9
- id : end-of-file-fixer
13
13
14
14
# Fix common spelling mistakes
15
15
- repo : https://github.com/codespell-project/codespell
16
- rev : v2.2.1
16
+ rev : v2.3.0
17
17
hooks :
18
18
- id : codespell
19
19
args : [
@@ -32,30 +32,30 @@ repos:
32
32
33
33
# Format the code aggressively using black
34
34
- repo : https://github.com/psf/black
35
- rev : 22 .10.0
35
+ rev : 24 .10.0
36
36
hooks :
37
37
- id : black
38
38
args : [--line-length=120]
39
39
40
40
# Lint the code using flake8
41
41
- repo : https://github.com/pycqa/flake8
42
- rev : 3.9.2
42
+ rev : 7.1.1
43
43
hooks :
44
44
- id : flake8
45
45
# More than one argument in the second list, so need to pass arguments as below (and -- to finish)
46
46
args : [
47
47
' --max-line-length' , '120', # we can write dicts however we want
48
- ' --extend-ignore' , 'E203,C408', # flake8 disagrees with black, so this should be ignored.
48
+ ' --extend-ignore' , 'E203,C408,B028 ', # flake8 disagrees with black, so this should be ignored.
49
49
' --'
50
50
]
51
51
additional_dependencies :
52
- - flake8-comprehensions==3.1.0
53
- - flake8-bugbear==21.3.2
52
+ - flake8-comprehensions
53
+ - flake8-bugbear
54
54
files : ^(xdem|tests)
55
55
56
56
# Lint the code using mypy
57
57
- repo : https://github.com/pre-commit/mirrors-mypy
58
- rev : v0.982
58
+ rev : v1.13.0
59
59
hooks :
60
60
- id : mypy
61
61
args : [
@@ -72,27 +72,27 @@ repos:
72
72
--disable-error-code=no-any-return
73
73
74
74
]
75
- additional_dependencies : [tokenize-rt==3.2.0, numpy==1.22 ]
75
+ additional_dependencies : [tokenize-rt==3.2.0, numpy==1.26 ]
76
76
files : ^(xdem|tests|doc/code)
77
77
78
78
79
79
# Sort imports using isort
80
80
- repo : https://github.com/PyCQA/isort
81
- rev : 5.12.0
81
+ rev : 5.13.2
82
82
hooks :
83
83
- id : isort
84
84
args : ["--profile", "black"]
85
85
86
86
# Automatically upgrade syntax to a minimum version
87
87
- repo : https://github.com/asottile/pyupgrade
88
- rev : v3.1 .0
88
+ rev : v3.19 .0
89
89
hooks :
90
90
- id : pyupgrade
91
91
args : [--py37-plus]
92
92
93
93
# Various formattings
94
94
- repo : https://github.com/pre-commit/pygrep-hooks
95
- rev : v1.9 .0
95
+ rev : v1.10 .0
96
96
hooks :
97
97
# Single backticks should apparently not be used
98
98
- id : rst-backticks
@@ -111,7 +111,7 @@ repos:
111
111
112
112
# Add custom regex lints (see .relint.yml)
113
113
- repo : https://github.com/codingjoe/relint
114
- rev : 2.0.0
114
+ rev : 3.3.1
115
115
hooks :
116
116
- id : relint
117
117
- repo : local
0 commit comments