Skip to content

Update pre-commit hooks #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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