File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ repos:
38
38
39
39
# Ruff, the Python auto-correcting linter written in Rust
40
40
- repo : https://github.com/astral-sh/ruff-pre-commit
41
- rev : v0.0.281
41
+ rev : v0.0.287
42
42
hooks :
43
43
- id : ruff
44
44
args : ["--fix", "--show-fixes"]
45
45
46
46
# Check static types with mypy
47
47
- repo : https://github.com/pre-commit/mirrors-mypy
48
- rev : " v1.4 .1"
48
+ rev : " v1.5 .1"
49
49
hooks :
50
50
- id : mypy
51
51
args : []
@@ -84,15 +84,15 @@ repos:
84
84
85
85
# Also code format the docs
86
86
- repo : https://github.com/asottile/blacken-docs
87
- rev : " 1.15 .0"
87
+ rev : " 1.16 .0"
88
88
hooks :
89
89
- id : blacken-docs
90
90
additional_dependencies :
91
91
- black==23.3.0 # keep in sync with black hook
92
92
93
93
# Changes tabs to spaces
94
94
- repo : https://github.com/Lucas-C/pre-commit-hooks
95
- rev : " v1.5.1 "
95
+ rev : " v1.5.4 "
96
96
hooks :
97
97
- id : remove-tabs
98
98
@@ -147,7 +147,7 @@ repos:
147
147
148
148
# PyLint has native support - not always usable, but works for us
149
149
- repo : https://github.com/PyCQA/pylint
150
- rev : " v3.0.0a6 "
150
+ rev : " v3.0.0a7 "
151
151
hooks :
152
152
- id : pylint
153
153
files : ^pybind11
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def generate_dummy_code_boost(nclasses=10):
70
70
71
71
for codegen in [generate_dummy_code_pybind11 , generate_dummy_code_boost ]:
72
72
print ("{" )
73
- for i in range (0 , 10 ):
73
+ for i in range (10 ):
74
74
nclasses = 2 ** i
75
75
with open ("test.cpp" , "w" ) as f :
76
76
f .write (codegen (nclasses ))
Original file line number Diff line number Diff line change @@ -94,5 +94,5 @@ line-length = 120
94
94
isort.known-first-party = [" env" , " pybind11_cross_module_tests" , " pybind11_tests" ]
95
95
96
96
[tool .ruff .per-file-ignores ]
97
- "tests/**" = [" EM" , " N" ]
97
+ "tests/**" = [" EM" , " N" , " E721 " ]
98
98
"tests/test_call_policies.py" = [" PLC1901" ]
Original file line number Diff line number Diff line change @@ -209,15 +209,15 @@ def test_map_string_double_const():
209
209
def test_noncopyable_containers ():
210
210
# std::vector
211
211
vnc = m .get_vnc (5 )
212
- for i in range (0 , 5 ):
212
+ for i in range (5 ):
213
213
assert vnc [i ].value == i + 1
214
214
215
215
for i , j in enumerate (vnc , start = 1 ):
216
216
assert j .value == i
217
217
218
218
# std::deque
219
219
dnc = m .get_dnc (5 )
220
- for i in range (0 , 5 ):
220
+ for i in range (5 ):
221
221
assert dnc [i ].value == i + 1
222
222
223
223
i = 1
@@ -252,7 +252,7 @@ def test_noncopyable_containers():
252
252
# nested std::map<std::vector>
253
253
nvnc = m .get_nvnc (5 )
254
254
for i in range (1 , 6 ):
255
- for j in range (0 , 5 ):
255
+ for j in range (5 ):
256
256
assert nvnc [i ][j ].value == j + 1
257
257
258
258
# Note: maps do not have .values()
You can’t perform that action at this time.
0 commit comments