knot-resolver = 'knot_resolver_manager.__main__:run'
[tool.poe.tasks]
-configure = { cmd = "scripts/meson-configure", help = "Configure Knot Resolver daemon" }
-run = { cmd = "scripts/run", help = "Run the manager" }
-run-debug = { cmd = "scripts/run-debug", help = "Run the manager under debugger" }
-docs = { cmd = "scripts/docs", help = "Create HTML documentation" }
+configure = { cmd = "scripts/poe-tasks/meson-configure", help = "Configure Knot Resolver daemon" }
+run = { cmd = "scripts/poe-tasks/run", help = "Run the manager" }
+run-debug = { cmd = "scripts/poe-tasks/run-debug", help = "Run the manager under debugger" }
+docs = { cmd = "scripts/poe-tasks/docs", help = "Create HTML documentation" }
test = { shell = "env PYTHONPATH=. pytest --junitxml=unit.junit.xml --cov=manager/knot_resolver_manager --show-capture=all tests/manager", help = "Run tests" }
-check = { cmd = "scripts/codecheck", help = "Run static code analysis" }
+check = { cmd = "scripts/poe-tasks/codecheck", help = "Run static code analysis" }
format = { shell = "black manager/knot_resolver_manager/ tests/manager scripts/create_setup.py manager/build_c_extensions.py; isort .", help = "Run code formatter" }
fixdeps = { shell = "poetry install; npm install; npm update", help = "Install/update dependencies according to configuration files"}
-examples = { cmd = "scripts/examples", help = "Validate all configuration examples" }
+examples = { cmd = "scripts/poe-tasks/examples", help = "Validate all configuration examples" }
kresctl = { script = "knot_resolver_manager.cli.main:main", cwd="${POE_PWD}", help="run kresctl" }
kresctl-nocwd = { script = "knot_resolver_manager.cli.main:main", help="run kresctl" } # Python <3.8 and poethepoet <0.22.0 compatibility (see also `./poe`)
clean = """
build
dist
"""
-gen-setuppy = { shell = "python scripts/create_setup.py > setup.py", help = "Generate setup.py file for backwards compatibility" }
-man = {cmd = "scripts/man", help = "Display manpage from sources" }
+gen-setuppy = { shell = "python scripts/poe-tasks/create_setup.py > setup.py", help = "Generate setup.py file for backwards compatibility" }
+man = {cmd = "scripts/poe-tasks/man", help = "Display manpage from sources" }
[tool.black]
line-length = 120