Skip to content

Commit aa6a3ba

Browse files
committed
pyproject.toml: Introduce poethepoet tasks
Add poethepoet as a development dependency and add tasks for testing. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent f30b300 commit aa6a3ba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ types = [
5050
"types-pyyaml~=6.0",
5151
]
5252
dev = [
53+
"poethepoet~=0.37",
5354
{include-group = "lint"},
5455
{include-group = "test"},
5556
{include-group = "types"},
@@ -103,3 +104,12 @@ line-ending = "lf"
103104
[tool.mypy]
104105
mypy_path = "src"
105106
ignore_missing_imports = true
107+
108+
[tool.poe.tasks.test]
109+
cmd = "python -m pytest -v -W error --junitxml=junit.xml -o junit_family=xunit1 --cov-report=html --cov-config=pyproject.toml --cov=west"
110+
env = {PYTHONIOENCODING = "utf-8"}
111+
112+
[tool.poe.tasks]
113+
lint = "ruff check ."
114+
types = "mypy --package west"
115+
all = ["test", "lint", "types"]

0 commit comments

Comments
 (0)