Skip to content

Commit 179cc40

Browse files
Update pre-commit hooks
1 parent 6f986ae commit 179cc40

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ exclude: |
77
)$
88
repos:
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v2.1.0
10+
rev: v4.4.0
1111
hooks:
1212
- id: debug-statements
1313
- id: check-merge-conflict
1414
- repo: https://github.com/psf/black
15-
rev: 22.3.0
15+
rev: 23.3.0
1616
hooks:
1717
- id: black
1818
language_version: python3
@@ -34,7 +34,7 @@ repos:
3434
)$
3535
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
3636
- repo: https://github.com/pre-commit/mirrors-mypy
37-
rev: v0.931
37+
rev: v1.4.0
3838
hooks:
3939
- id: mypy
4040
additional_dependencies:

etuples/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ class ExpressionTuple(Sequence):
127127
null = object()
128128

129129
def __new__(cls, seq=None, **kwargs):
130-
131130
# XXX: This doesn't actually remove the entry from the kwargs
132131
# passed to __init__!
133132
# It does, however, remove it for the check below.
@@ -304,7 +303,6 @@ def _repr_pretty_(self, p, cycle):
304303
p.pretty(item)
305304

306305
def __eq__(self, other):
307-
308306
# Built-in `==` won't work in CPython for deeply nested structures.
309307

310308
# TODO: We could track the level of `ExpressionTuple`-only nesting and

etuples/dispatch.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ def etuplize_step(
145145
return_bad_args=return_bad_args,
146146
convert_ConsPairs=convert_ConsPairs,
147147
):
148-
149148
if isinstance(x, ExpressionTuple):
150149
yield x
151150
return
@@ -182,7 +181,6 @@ def etuplize_step(
182181
et_op = yield etuplize_step(op, return_bad_args=True)
183182
et_args = []
184183
for a in args:
185-
186184
e = yield etuplize_step(
187185
a, return_bad_args=True, convert_ConsPairs=False
188186
)

tests/test_core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
def test_ExpressionTuple(capsys):
11-
1211
e0 = ExpressionTuple((add, 1, 2))
1312
assert hash(e0) == hash((add, 1, 2))
1413
assert e0 == ExpressionTuple(e0)
@@ -234,7 +233,6 @@ def gen_long_add_chain(N=None, num=1):
234233

235234

236235
def test_reify_recursion_limit():
237-
238236
a = gen_long_add_chain(10)
239237
assert a.evaled_obj == 11
240238

tests/test_dispatch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def test_rator_rands_apply():
7272

7373

7474
def test_etuplize():
75-
7675
e0 = etuple(add, 1)
7776
e1 = etuplize(e0)
7877

0 commit comments

Comments
 (0)