summaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorAleš Mrázek <ales.mrazek@nic.cz>2024-08-01 14:45:25 +0200
committerAleš Mrázek <ales.mrazek@nic.cz>2024-08-26 14:28:10 +0200
commitbdd234295d4a55fcea93db47397dc3c1f694b577 (patch)
treeb7ab605fdb0d709908ce184bc55cece4f6789df5 /pyproject.toml
parentscripts: unused scripts removed (diff)
downloadknot-resolver-bdd234295d4a55fcea93db47397dc3c1f694b577.tar.xz
knot-resolver-bdd234295d4a55fcea93db47397dc3c1f694b577.zip
scripts: subdirectory for ./poe tasks created
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml16
1 files changed, 8 insertions, 8 deletions
diff --git a/pyproject.toml b/pyproject.toml
index ec3f7794..4dcba00e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -69,15 +69,15 @@ kresctl = 'knot_resolver_manager.cli.main:main'
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 = """
@@ -88,8 +88,8 @@ 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