mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-28 16:04:35 +02:00
lint fix
This commit is contained in:
@@ -21,7 +21,7 @@ clean:
|
|||||||
fclean: clean
|
fclean: clean
|
||||||
rm mazegen-1.0.0-py3-none-any.whl
|
rm mazegen-1.0.0-py3-none-any.whl
|
||||||
|
|
||||||
lint:
|
lint: install
|
||||||
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 -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 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 -p parsing
|
||||||
@@ -29,7 +29,7 @@ lint:
|
|||||||
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: install
|
||||||
uv run flake8 . --exclude=.venv
|
uv run flake8 . --exclude=.venv
|
||||||
uv run env PYTHONPATH=src python3 -m mypy --strict -p mazegen
|
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 src/AMazeIng.py
|
||||||
|
|||||||
Binary file not shown.
@@ -296,7 +296,8 @@ class Kruskal(MazeGenerator):
|
|||||||
cells_ft = self.get_cell_ft(width, height)
|
cells_ft = self.get_cell_ft(width, height)
|
||||||
if cells_ft and (self.start in cells_ft or self.end in cells_ft):
|
if cells_ft and (self.start in cells_ft or self.end in cells_ft):
|
||||||
print(
|
print(
|
||||||
"Forty two will not be display. Entry or exit set in the ft logo"
|
"Forty two will not be display. "
|
||||||
|
"Entry or exit set in the ft logo"
|
||||||
)
|
)
|
||||||
cells_ft = None
|
cells_ft = None
|
||||||
|
|
||||||
@@ -384,7 +385,8 @@ class DepthFirstSearch(MazeGenerator):
|
|||||||
visited = self.lock_cell_ft(visited, self.forty_two)
|
visited = self.lock_cell_ft(visited, self.forty_two)
|
||||||
else:
|
else:
|
||||||
print(
|
print(
|
||||||
"Forty two will not be display. Entry or exit set in the ft logo"
|
"Forty two will not be display. "
|
||||||
|
"Entry or exit set in the ft logo"
|
||||||
)
|
)
|
||||||
path: list[tuple[int, int]] = list()
|
path: list[tuple[int, int]] = list()
|
||||||
w_h = (width, height)
|
w_h = (width, height)
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from os.path import split
|
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user