diff --git a/Makefile b/Makefile index 983fa08..6b7b186 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ install: uv sync -run: +run: install uv run python3 a_maze_ing.py config.txt debug: @@ -11,9 +11,9 @@ clean: rm -rf __pycache__ .mypy_cache lint: - uv run python3 -m flake8 . - uv run python3 -m mypy . --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs + uv run flake8 . + uv run mypy . --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs lint-strict: - uv run python3 -m flake8 . - uv run python3 -m mypy . --strict + uv run flake8 . + uv run mypy . --strict diff --git a/pyproject.toml b/pyproject.toml index 25f1cd3..ce9d7ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,8 +5,21 @@ description = "This is the way" readme = "README.md" requires-python = ">=3.10" dependencies = [ - "flake8>=7.3.0", - "mypy>=1.19.1", "numpy>=2.2.6", "pydantic>=2.12.5", ] + + +[dependency-groups] +dev = [ + "mypy>=1.19.1", + "flake8>=7.3.0", +] + + +[tool.mypy] +python_version = "3.10" +exclude = [ + ".venv", + "venv", +] diff --git a/uv.lock b/uv.lock index 3b818e5..bffc8f1 100644 --- a/uv.lock +++ b/uv.lock @@ -11,21 +11,29 @@ name = "a-maze-ing" version = "0.1.0" source = { virtual = "." } dependencies = [ - { name = "flake8" }, - { name = "mypy" }, { name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, { name = "numpy", version = "2.4.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, { name = "pydantic" }, ] +[package.dev-dependencies] +dev = [ + { name = "flake8" }, + { name = "mypy" }, +] + [package.metadata] requires-dist = [ - { name = "flake8", specifier = ">=7.3.0" }, - { name = "mypy", specifier = ">=1.19.1" }, { name = "numpy", specifier = ">=2.2.6" }, { name = "pydantic", specifier = ">=2.12.5" }, ] +[package.metadata.requires-dev] +dev = [ + { name = "flake8", specifier = ">=7.3.0" }, + { name = "mypy", specifier = ">=1.19.1" }, +] + [[package]] name = "annotated-types" version = "0.7.0"