Newer
Older
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "behave-utils"
description = "Utilities for writing Behave step implementations"
license = "Apache-2.0"
readme = "README.md"
repository = "https://code.kodo.org.uk/dom/behave-utils"
authors = [
"Dominik Sekotill <dom.sekotill@kodo.org.uk>",
]
packages = [
{ include = "behave_utils" },
{ include = "behave-stubs", from = "stubs" },
]
include = [
"stubs",
]
[tool.poetry.dependencies]
python = "~=3.9"
trio = "~=0.20.0"
[tool.isort]
force_single_line = true
[tool.mypy]
strict = true
warn_unused_configs = true
warn_unreachable = true
mypy_path = ["stubs"]
[[tool.mypy.overrides]]
module = "coverage.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.coverage"
disallow_subclassing_any = false
[tool.coverage.run]
data_file = "results/coverage.db"
branch = true
source = [
"behave_utils",
]
[tool.coverage.report]
precision = 2
skip_empty = true
exclude_lines = [
"pragma: no cover",
"if .*\\b__name__\\b",
"if .*\\bTYPE_CHECKING\\b",
"class .*(.*\\bProtocol\\b.*):",
"@overload",
]
partial_branches = [
"pragma: no branch",
"if .*\\b__debug__\\b",
]
[tool.coverage.json]
output = "results/coverage.json"
[tool.coverage.xml]
output = "results/coverage.xml"
[tool.coverage.html]
directory = "results/coverage.html.d"
show_contexts = true