[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "pyWebLayout"
description = "A Python library for HTML-like layout and rendering"
readme = "README.md"
requires-python = ">=3.6"
license = {file = "LICENSE"}
authors = [
    {name = "Duncan Tourolle", email = "duncan@tourolle.paris"}
]
dynamic = ["version"]
dependencies = [
    "Pillow",
    "numpy",
    "pyphen",
    "beautifulsoup4",
    "flask",
    "ebooklib",
    "requests"
]

[tool.coverage.run]
source = ["pyWebLayout"]
branch = true
omit = [
    "*/tests/*",
    "*/test_*",
    "setup.py",
    "*/examples/*",
    "*/__main__.py"
]

[tool.coverage.report]
exclude_lines = [
    "pragma: no cover",
    "def __repr__",
    "if self.debug:",
    "if settings.DEBUG",
    "raise AssertionError",
    "raise NotImplementedError",
    "if 0:",
    "if __name__ == .__main__.:",
    "^\\s*\"\"\".*\"\"\"\\s*$",
    "^\\s*'''.*'''\\s*$",
    "^\\s*\"\"\"",
    "^\\s*'''",
    "\"\"\"\\s*$",
    "'''\\s*$"
]
precision = 2
show_missing = true
skip_covered = false
skip_empty = true

[tool.coverage.xml]
output = "coverage.xml"

[tool.coverage.html]
directory = "htmlcov"
