diff options
author | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-08-01 17:56:20 +0200 |
---|---|---|
committer | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-08-26 14:28:10 +0200 |
commit | d5b7b18072260f8298062093a5323496916d7f07 (patch) | |
tree | ed88deedb6078257ff72aa19fcbe2c4312611ea5 /pyproject.toml | |
parent | pyproject.toml: help for some poe tasks improved (diff) | |
download | knot-resolver-d5b7b18072260f8298062093a5323496916d7f07.tar.xz knot-resolver-d5b7b18072260f8298062093a5323496916d7f07.zip |
scripts/poe-tasks: scripts for some tasks
It would be useful to be able to run some tasks outside of the Poetry environment.
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyproject.toml b/pyproject.toml index c241727a..81b7a960 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,13 +74,13 @@ configure = { cmd = "scripts/poe-tasks/configure", help = "(Re)configure Meson b run = { cmd = "scripts/poe-tasks/run", help = "Run Knot Resolver" } run-debug = { cmd = "scripts/poe-tasks/run-debug", help = "Debug Knot Resolver with debugpy" } docs = { cmd = "scripts/poe-tasks/docs", help = "Create Knot Resolver HTML documentation" } -test = { shell = "env PYTHONPATH=. pytest --junitxml=unit.junit.xml --cov=manager/knot_resolver_manager --show-capture=all tests/manager", help = "Run unit tests" } +test = { cmd = "scripts/poe-tasks/test", help = "Run pytest unit tests" } check = { cmd = "scripts/poe-tasks/check", help = "Check that all dependencies are installed and run static code analysis" } examples = { cmd = "scripts/poe-tasks/examples", help = "Validate all configuration examples using 'kresctl validate' utility" } 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 -gen-setuppy = { shell = "python scripts/poe-tasks/create_setup.py > setup.py", help = "Generate 'setup.py' file for backwards compatibility" } -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"} kresctl = { script = "knot_resolver_manager.cli.main:main", cwd="${POE_PWD}", help="Run kresctl utility" } kresctl-nocwd = { script = "knot_resolver_manager.cli.main:main", help="Run kresctl utility" } # Python <3.8 and poethepoet <0.22.0 compatibility (see also `./poe`) |