Skip to content

Commit 852005e

Browse files
authored
Merge pull request #86 from dylanljones/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents be2c627 + ee05c89 commit 852005e

6 files changed

Lines changed: 2 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: mixed-line-ending
1212

1313
- repo: https://github.com/psf/black
14-
rev: 22.12.0
14+
rev: 23.1.0
1515
types: [ python ]
1616
hooks:
1717
- id: black

lattpy/lattice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,6 @@ def _append(
805805
sort_reverse=False,
806806
primitive=False,
807807
):
808-
809808
indices2 = np.copy(ind)
810809
positions2 = np.copy(pos)
811810
neighbors2 = np.copy(neighbors)

lattpy/plotting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ def text(ax, strings, positions, offset=None, **kwargs):
478478
# Lattice plotting
479479
# ======================================================================================
480480

481+
481482
# noinspection PyAbstractClass
482483
class CircleCollection(Collection):
483484
"""Custom circle collection

lattpy/shape.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ def contains(self, points, tol=1e-10):
301301
)
302302

303303
def plot(self, ax, color="k", lw=0.0, alpha=0.2, **kwargs): # pragma: no cover
304-
305304
if self.dim == 2:
306305
segments = self.hull.points[self.hull.simplices]
307306
lines = draw_lines(ax, segments, color=color, lw=lw)
@@ -310,7 +309,6 @@ def plot(self, ax, color="k", lw=0.0, alpha=0.2, **kwargs): # pragma: no cover
310309
surfaces = ax.fill(*segments.T, fc=color, alpha=alpha, ec=None)
311310

312311
elif self.dim == 3:
313-
314312
segments = np.array(
315313
[self.hull.points[np.append(i, i[0])] for i in self.hull.simplices]
316314
)

lattpy/spatial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ def draw(
411411
draw=True,
412412
fill=True,
413413
): # pragma: no cover
414-
415414
if ax is None:
416415
fig = plt.figure()
417416
ax = fig.add_subplot(111, projection="3d" if self.dim == 3 else None)

lattpy/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252

5353

5454
class LatticeError(Exception):
55-
5655
pass
5756

5857

0 commit comments

Comments
 (0)