Skip to content

Commit

Permalink
chore: make mypy runs mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
dilawar committed Jul 30, 2024
1 parent b494832 commit 380fb0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ upload:
install:
python3 -m pip install .

lint:
lint: mypy
$(POETRY) run ruff check .

mypy:
$(POETRY) run mypy --ignore-missing-imports --install-types --non-interactive plotdigitizer tests

fmt:
$(POETRY) run ruff format .

.PHONY: fmt mypy lint install upload test test_install all
4 changes: 2 additions & 2 deletions plotdigitizer/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def __init__(self, path: Path, coordinates: T.List[str], indices: T.List[str]):
self.indices = list_to_points(indices)
self.coordinates = list_to_points(coordinates)
self.path = path
self.orignal = cv.imread(self.path)
self.imgs = [("orig-gray-normalized", normalize(cv.imread(self.path, 0)))]
self.orignal = cv.imread(str(self.path))
self.imgs = [("orig-gray-normalized", normalize(cv.imread(str(self.path), 0)))]

def remove_grid(self, debug: bool):
image_with_grid = grid.remove_grid(self._last())
Expand Down

0 comments on commit 380fb0c

Please sign in to comment.