install:
pip install poetry
- poetry install
+ python -m poetry install
.venv:
python -m venv .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
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"
[metadata]
lock-version = "2.1"
python-versions = ">=3.13"
-content-hash = "ce41f0eeaa87916050e64c7d85f8a9c476982325c0125ab31bdaf8a9f6af1f54"
+content-hash = "5c3f8846fd3fb2a08f346e714d48f0a42d9fd6f626e11d89cb414b900f4943ac"
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"