man = {cmd = "scripts/poe-tasks/man", help = "Display Knot Resolver manpage from sources" }
gen-setuppy = { cmd = "scripts/poe-tasks/gen-setuppy", help = "Generate 'setup.py' file for backwards compatibility" }
format = { cmd = "scripts/poe-tasks/format", help = "Run code formatter" }
-# tasks runned directly
-fixdeps = { shell = "poetry install; npm install; npm update", help = "Install/update dependencies according to configuration files"}
kresctl = { cmd = "scripts/poe-tasks/kresctl", help="Run kresctl utility" }
-clean = """
- rm -rf .coverage
- .mypy_cache
- .pytest_cache
- ./**/__pycache__
- build
- dist
-"""
+clean = { cmd = "scripts/poe-tasks/clean", help="Cleanup build directories and files" }
[tool.black]
line-length = 120
--- /dev/null
+#!/usr/bin/env bash
+
+# ensure consistent behaviour
+src_dir="$(dirname "$(realpath "$0")")"
+source $src_dir/utils/_env.sh
+
+echo
+echo Removing mypy, pytest and other cached files
+echo --------------------------------------------
+rm -vrf .coverage .mypy_cache .pytest_cache
+
+echo
+echo Removing meson build directories and files
+echo ------------------------------------------
+rm -vrf .build_kresd .install_kresd build build_doc dist
+
+echo
+echo Removing __pycache__ directories and files
+echo ------------------------------------------
+find . -type d -name '__pycache__' -prune -exec rm -vrf {} +