Skip to content

Commit

Permalink
Improve CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasteuwen committed Aug 25, 2024
1 parent 096d18d commit 263ec7a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 59 deletions.
6 changes: 6 additions & 0 deletions .spin/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ def dist():
subprocess.run(["ls", "-l", "dist"], check=True)


@cli.command()
def precommit():
"""🛠️ Run pre-commit hooks"""
subprocess.run(["pre-commit", "run", "--all-files"], check=True)


@cli.command()
def format():
"""🛠️ Run clang-format and black"""
Expand Down
4 changes: 4 additions & 0 deletions dlup/_geometry.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from typing import Callable, overload

import numpy as np
from numpy.typing import NDArray

from dlup._types import GenericNumber
from dlup.geometry import Box as Box_
from dlup.geometry import Point as Point_
Expand Down Expand Up @@ -42,6 +45,7 @@ class AnnotationRegion:
def polygons(self) -> list[Polygon_]: ...
@property
def points(self) -> list[Point_]: ...
def as_mask(self) -> NDArray[np.int_]: ...

class GeometryCollection:
def add_polygon(self, polygon: Polygon) -> None: ...
Expand Down
59 changes: 0 additions & 59 deletions examples/annotations_to_mask.py

This file was deleted.

0 comments on commit 263ec7a

Please sign in to comment.