Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#159)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Feb 8, 2023
1 parent a6652d5 commit 4319b68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ repos:
exclude: docs

- repo: https://github.com/psf/black
rev: "22.12.0"
rev: "23.1.0"
hooks:
- id: black
4 changes: 0 additions & 4 deletions daft.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ def get_min(minsize, artist):
# Auto-set shape
# We pass through each object once to find the maximum coordinates
if self.shape is None:

maxsize = np.copy(self._ctx.origin)

for plate in self._plates:
Expand All @@ -439,7 +438,6 @@ def get_min(minsize, artist):

# Pass through each object to find the minimum coordinates
if self.origin is None:

minsize = np.copy(self._ctx.shape * self._ctx.grid_unit)

for plate in self._plates:
Expand Down Expand Up @@ -583,7 +581,6 @@ def __init__(
label_params=None,
shape="ellipse",
):

# Check Node style.
# Iterable is consumed, so first condition checks if two or more are
# true
Expand Down Expand Up @@ -837,7 +834,6 @@ def get_frontier_coord(self, target_xy, ctx, edge):
return x0, y0

elif self.shape == "rectangle":

dx, dy = x2 - x1, y2 - y1

# theta = np.angle(complex(dx, dy))
Expand Down

0 comments on commit 4319b68

Please sign in to comment.