]> Untitled Git - axy/ft/a-maze-ing.git/commitdiff
added dependencies in pyproject.toml + modified makefile
authorLucas Flores <luflores@k1r4p7.42mulhouse.fr>
Mon, 30 Mar 2026 13:57:08 +0000 (15:57 +0200)
committerLucas Flores <luflores@k1r4p7.42mulhouse.fr>
Mon, 30 Mar 2026 13:57:08 +0000 (15:57 +0200)
Makefile
poetry.lock
pyproject.toml

index 55c9c417afba31fde966277e5f66e405d6a15584..4cd4dd9a02a505f8278a2932d4b3d0aa7c7a101a 100644 (file)
--- 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
index 998515af5a04284291e87c0cb142e883c46e7bb8..9c5afd5517bb38843e2a7afba22a565062c35c92 100644 (file)
@@ -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"
index 796dffaff200ee3059c2c1fc8f885f3dd7f1f123..39b54bd10145206b0d6171f5d7e800319d77af67 100644 (file)
@@ -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"