From: Lucas Flores Date: Mon, 30 Mar 2026 13:57:08 +0000 (+0200) Subject: added dependencies in pyproject.toml + modified makefile X-Git-Url: https://git.uwuaxy.net/animations_scrolling.mp4?a=commitdiff_plain;h=d39f0c5c18df4763f930fd17dd03f3a4e98084de;p=axy%2Fft%2Fa-maze-ing.git added dependencies in pyproject.toml + modified makefile --- diff --git a/Makefile b/Makefile index 55c9c41..4cd4dd9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ install: pip install poetry - poetry install + python -m poetry install .venv: python -m venv .venv @@ -9,26 +9,26 @@ venv-bash: .venv bash --init-file <(echo ". ~/.bashrc; . .venv/bin/activate") run-prof: - poetry run python -m cProfile -o out.prof a_maze_ing.py - flameprof out.prof > prof.svg + python -m poetry run python -m cProfile -o out.prof a_maze_ing.py + python -m flameprof out.prof > prof.svg run: - poetry run python a_maze_ing.py minimal_visual.conf + python -m poetry run python a_maze_ing.py minimal_visual.conf build: - poetry build -o . + python -m poetry build -o . clean: # sketchy rf rm rm -rf __pycache__ **/__pycache__ lint: - poetry run flake8 . - poetry run mypy . --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs + python -m poetry run flake8 . + python -m poetry run mypy . --warn-return-any --warn-unused-ignores --ignore-missing-imports --disallow-untyped-defs --check-untyped-defs lint-strict: - poetry run flake8 . --extend-exclude .venv - poetry run mypy . --strict + python -m poetry run flake8 . --extend-exclude .venv + python -m poetry run mypy . --strict profile: python -m cProfile -o out.prof __main__.py diff --git a/poetry.lock b/poetry.lock index 998515a..9c5afd5 100644 --- a/poetry.lock +++ b/poetry.lock @@ -17,6 +17,17 @@ mccabe = ">=0.7.0,<0.8.0" pycodestyle = ">=2.14.0,<2.15.0" pyflakes = ">=3.4.0,<3.5.0" +[[package]] +name = "flameprof" +version = "0.4" +description = "cProfile flamegraph generator" +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "flameprof-0.4.tar.gz", hash = "sha256:dbc86d4190cbbba624f1e0a40f44d9db96138e27534d83c8ef42d420857875a3"}, +] + [[package]] name = "librt" version = "0.8.1" @@ -260,4 +271,4 @@ files = [ [metadata] lock-version = "2.1" python-versions = ">=3.13" -content-hash = "ce41f0eeaa87916050e64c7d85f8a9c476982325c0125ab31bdaf8a9f6af1f54" +content-hash = "5c3f8846fd3fb2a08f346e714d48f0a42d9fd6f626e11d89cb414b900f4943ac" diff --git a/pyproject.toml b/pyproject.toml index 796dffa..39b54bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,7 @@ name = "mazegen" dependencies = [ "mypy (>=1.19.1,<2.0.0)", "flake8 (>=7.3.0,<8.0.0)", + "flameprof (>=0.4,<0.5)", ] requires-python = ">=3.13" version="1.0.0"