Skip to content

Commit

Permalink
Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Jun 22, 2023
1 parent 6f986ae commit 75abba3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ exclude: |
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
rev: v4.4.0
hooks:
- id: debug-statements
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.3.0
hooks:
- id: black
language_version: python3
Expand All @@ -34,7 +34,7 @@ repos:
)$
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.931
rev: v1.4.0
hooks:
- id: mypy
additional_dependencies:
Expand Down
2 changes: 0 additions & 2 deletions etuples/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ class ExpressionTuple(Sequence):
null = object()

def __new__(cls, seq=None, **kwargs):

# XXX: This doesn't actually remove the entry from the kwargs
# passed to __init__!
# It does, however, remove it for the check below.
Expand Down Expand Up @@ -304,7 +303,6 @@ def _repr_pretty_(self, p, cycle):
p.pretty(item)

def __eq__(self, other):

# Built-in `==` won't work in CPython for deeply nested structures.

# TODO: We could track the level of `ExpressionTuple`-only nesting and
Expand Down
2 changes: 0 additions & 2 deletions etuples/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ def etuplize_step(
return_bad_args=return_bad_args,
convert_ConsPairs=convert_ConsPairs,
):

if isinstance(x, ExpressionTuple):
yield x
return
Expand Down Expand Up @@ -182,7 +181,6 @@ def etuplize_step(
et_op = yield etuplize_step(op, return_bad_args=True)
et_args = []
for a in args:

e = yield etuplize_step(
a, return_bad_args=True, convert_ConsPairs=False
)
Expand Down
2 changes: 0 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


def test_ExpressionTuple(capsys):

e0 = ExpressionTuple((add, 1, 2))
assert hash(e0) == hash((add, 1, 2))
assert e0 == ExpressionTuple(e0)
Expand Down Expand Up @@ -234,7 +233,6 @@ def gen_long_add_chain(N=None, num=1):


def test_reify_recursion_limit():

a = gen_long_add_chain(10)
assert a.evaled_obj == 11

Expand Down
1 change: 0 additions & 1 deletion tests/test_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def test_rator_rands_apply():


def test_etuplize():

e0 = etuple(add, 1)
e1 = etuplize(e0)

Expand Down

0 comments on commit 75abba3

Please sign in to comment.