Skip to content

Commit daba7d8

Browse files
author
Ryan Whitmore
committed
Update the pre-commit version to address deprecation issues and run black.
1 parent 669f94a commit daba7d8

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
exclude: |
22
(?x)^(
33
doc/.*|
4-
bin/.*
4+
bin/.*|
5+
dist/.*|
6+
\.?venv.*
57
)$
68
repos:
79
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.4.0
10+
rev: v5.0.0
911
hooks:
1012
- id: trailing-whitespace
1113
- id: end-of-file-fixer

tests/test_benchmarks.py

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

1212

1313
def unify_stack(u, v, s):
14-
1514
u = walk(u, s)
1615
v = walk(v, s)
1716

@@ -34,7 +33,6 @@ def unify_stack(u, v, s):
3433

3534

3635
def reify_stack(u, s):
37-
3836
u_ = walk(u, s)
3937

4038
if u_ is not u:

tests/test_core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ def test_unground_lvars():
163163
a_lv, b_lv = var(), var()
164164

165165
for ctor in (tuple, list, iter, set, frozenset):
166-
167166
if ctor not in (set, frozenset):
168167
sub_ctor = list
169168
else:
@@ -257,7 +256,6 @@ def test_unify_recursion_limit():
257256

258257

259258
def test_unify_freeze():
260-
261259
# These will sometimes be in different orders after conversion to
262260
# `iter`/`list`/`tuple`!
263261
# u = frozenset({("name", a), ("debit", b)})

unification/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ def isground(u, s):
281281
"""Determine whether or not `u` contains an unground logic variable under mappings `s`.""" # noqa: E501
282282

283283
def lvar_filter(z, r):
284-
285284
if isvar(r):
286285
raise UngroundLVarException()
287286
elif r is construction_sentinel:

0 commit comments

Comments
 (0)