changing the import for mypy test

This commit is contained in:
maoake
2026-04-01 23:00:08 +02:00
parent 3e85cbe919
commit 4c1955ace4
5 changed files with 12 additions and 8 deletions
+6 -2
View File
@@ -23,13 +23,17 @@ fclean: clean
lint: lint:
uv run flake8 . --exclude=.venv uv run flake8 . --exclude=.venv
uv run env PYTHONPATH=src python3 -m mypy --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs src uv run env PYTHONPATH=src python3 -m mypy --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs -p mazegen
uv run env PYTHONPATH=src python3 -m mypy --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs -p parsing
uv run env PYTHONPATH=src python3 -m mypy --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs src/AMazeIng.py
uv run env PYTHONPATH=src python3 -m mypy --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs tests uv run env PYTHONPATH=src python3 -m mypy --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs tests
uv run env PYTHONPATH=src python3 -m mypy --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs a_maze_ing.py uv run env PYTHONPATH=src python3 -m mypy --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs a_maze_ing.py
lint-strict: lint-strict:
uv run flake8 . --exclude=.venv uv run flake8 . --exclude=.venv
uv run env PYTHONPATH=src python3 -m mypy --strict src uv run env PYTHONPATH=src python3 -m mypy --strict -p mazegen
uv run env PYTHONPATH=src python3 -m mypy --strict src/AMazeIng.py
uv run env PYTHONPATH=src python3 -m mypy --strict -p parsing
uv run env PYTHONPATH=src python3 -m mypy --strict tests uv run env PYTHONPATH=src python3 -m mypy --strict tests
uv run env PYTHONPATH=src python3 -m mypy --strict a_maze_ing.py uv run env PYTHONPATH=src python3 -m mypy --strict a_maze_ing.py
+2 -2
View File
@@ -1,7 +1,7 @@
from typing import Any from typing import Any
from numpy.typing import NDArray from numpy.typing import NDArray
from src.AMazeIng import AMazeIng from AMazeIng import AMazeIng
from src.parsing.Parsing import DataMaze as Parsing from parsing.Parsing import DataMaze as Parsing
from mlx import Mlx from mlx import Mlx
import time import time
+1 -1
View File
@@ -2,7 +2,7 @@ from typing import Generator
from typing_extensions import Self from typing_extensions import Self
from pydantic import BaseModel, Field, model_validator, ConfigDict from pydantic import BaseModel, Field, model_validator, ConfigDict
from .mazegen import Maze, MazeGenerator, MazeSolver from mazegen import Maze, MazeGenerator, MazeSolver
class AMazeIng(BaseModel): class AMazeIng(BaseModel):
+1 -1
View File
@@ -2,7 +2,7 @@ from abc import ABC, abstractmethod
from typing import Generator, Any from typing import Generator, Any
import numpy as np import numpy as np
from numpy.typing import NDArray from numpy.typing import NDArray
from mazegen import Cell from mazegen.Cell import Cell
import math import math
import random import random
+2 -2
View File
@@ -1,5 +1,5 @@
from ..mazegen import DepthFirstSearch, Kruskal from mazegen import DepthFirstSearch, Kruskal
from ..mazegen import AStar, DepthFirstSearchSolver from mazegen import AStar, DepthFirstSearchSolver
from typing import Any from typing import Any