Skip to content

Commit 03c8bb1

Browse files
committed
Update pre-commit hooks
1 parent 2b8b06e commit 03c8bb1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ repos:
4444

4545
# Black, the code formatter, natively supports pre-commit
4646
- repo: https://github.com/psf/black
47-
rev: 21.12b0 # Keep in sync with blacken-docs
47+
rev: 22.1.0 # Keep in sync with blacken-docs
4848
hooks:
4949
- id: black
5050

5151
- repo: https://github.com/asottile/blacken-docs
52-
rev: v1.12.0
52+
rev: v1.12.1
5353
hooks:
5454
- id: blacken-docs
5555
additional_dependencies:
56-
- black==21.12b0 # keep in sync with black hook
56+
- black==22.1.0 # keep in sync with black hook
5757

5858
# Changes tabs to spaces
5959
- repo: https://github.com/Lucas-C/pre-commit-hooks
60-
rev: v1.1.10
60+
rev: v1.1.11
6161
hooks:
6262
- id: remove-tabs
6363

@@ -128,7 +128,7 @@ repos:
128128
args: ["-L", "nd,ot,thist"]
129129

130130
- repo: https://github.com/shellcheck-py/shellcheck-py
131-
rev: v0.8.0.3
131+
rev: v0.8.0.4
132132
hooks:
133133
- id: shellcheck
134134

docs/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def generate_dummy_code_boost(nclasses=10):
7474
for codegen in [generate_dummy_code_pybind11, generate_dummy_code_boost]:
7575
print("{")
7676
for i in range(0, 10):
77-
nclasses = 2 ** i
77+
nclasses = 2**i
7878
with open("test.cpp", "w") as f:
7979
f.write(codegen(nclasses))
8080
n1 = dt.datetime.now()

tests/test_pytypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def test_pybind11_str_raw_str():
320320
assert cvt(False) == "False"
321321
assert cvt(True) == "True"
322322
assert cvt(42) == "42"
323-
assert cvt(2 ** 65) == "36893488147419103232"
323+
assert cvt(2**65) == "36893488147419103232"
324324
assert cvt(-1.50) == "-1.5"
325325
assert cvt(()) == "()"
326326
assert cvt((18,)) == "(18,)"

0 commit comments

Comments
 (0)