Skip to content

Commit b615d47

Browse files
committed
Update black to 22.3.0
1 parent d608c43 commit b615d47

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
3+
rev: v4.0.1
44
hooks:
55
- id: debug-statements
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 21.6b0
9+
rev: 22.3.0
1010
hooks:
1111
- id: black
1212
language_version: python3

pymathics/graph/generators.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ def apply(self, m1, m2, expression, evaluation, options):
132132
return
133133

134134
args = (py_m1, py_m2)
135-
g = graph_helper(nx.barbell_graph, options, False, "spring", evaluation, None, *args)
135+
g = graph_helper(
136+
nx.barbell_graph, options, False, "spring", evaluation, None, *args
137+
)
136138
if not g:
137139
return None
138140

@@ -219,7 +221,9 @@ def complete_graph_apply(self, n, expression, evaluation, options):
219221
return
220222

221223
args = (py_n,)
222-
g = graph_helper(nx.complete_graph, options, False, "circular", evaluation, None, *args)
224+
g = graph_helper(
225+
nx.complete_graph, options, False, "circular", evaluation, None, *args
226+
)
223227
if not g:
224228
return None
225229

@@ -394,7 +398,9 @@ def apply(self, n, expression, evaluation, options):
394398
return
395399

396400
args = (py_n,)
397-
g = graph_helper(nx.graph_atlas, options, False, "spring", evaluation, None, *args)
401+
g = graph_helper(
402+
nx.graph_atlas, options, False, "spring", evaluation, None, *args
403+
)
398404
if not g:
399405
return None
400406
g.n = n
@@ -416,7 +422,9 @@ def hkn_harary_apply(self, k, n, expression, evaluation, options):
416422
from pymathics.graph.harary import hkn_harary_graph
417423

418424
args = (py_k, py_n)
419-
g = graph_helper(hkn_harary_graph, options, False, "circular", evaluation, None, *args)
425+
g = graph_helper(
426+
hkn_harary_graph, options, False, "circular", evaluation, None, *args
427+
)
420428
if not g:
421429
return None
422430
g.k = py_k
@@ -489,7 +497,9 @@ def apply(self, n, m, expression, evaluation, options):
489497
from pymathics.graph.harary import hnm_harary_graph
490498

491499
args = (py_n, py_m)
492-
g = graph_helper(hnm_harary_graph, options, False, "circular", evaluation, None, *args)
500+
g = graph_helper(
501+
hnm_harary_graph, options, False, "circular", evaluation, None, *args
502+
)
493503
if not g:
494504
return None
495505
g.n = py_n
@@ -556,7 +566,9 @@ def apply(self, n, expression, evaluation, options):
556566
return
557567

558568
args = (py_n,)
559-
g = graph_helper(nx.ladder_graph, options, False, "spring", evaluation, 0, *args)
569+
g = graph_helper(
570+
nx.ladder_graph, options, False, "spring", evaluation, 0, *args
571+
)
560572
if not g:
561573
return None
562574
g.G.n = n

0 commit comments

Comments
 (0)