2026-01-09 12:31:48 +00:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["hatchling"]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
[project]
|
|
|
|
|
name = "bowser"
|
|
|
|
|
version = "0.0.1"
|
|
|
|
|
description = "Educational web browser from scratch"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
requires-python = ">=3.11"
|
|
|
|
|
license = {text = "MIT"}
|
|
|
|
|
authors = [{name = "Bowser", email = "bowser@example.com"}]
|
|
|
|
|
dependencies = [
|
2026-01-09 13:31:55 +00:00
|
|
|
"PyGObject>=3.54.0", # GTK+ bindings for Python (includes Adwaita via GI)
|
2026-01-09 12:31:48 +00:00
|
|
|
"skia-python>=87.9", # Skia 2D graphics library
|
2026-01-09 13:24:01 +00:00
|
|
|
"Jinja2>=3.0", # Template engine for pages
|
2026-01-09 12:31:48 +00:00
|
|
|
]
|
|
|
|
|
|
2026-01-12 09:22:34 +00:00
|
|
|
[dependency-groups]
|
2026-01-09 12:31:48 +00:00
|
|
|
dev = [
|
|
|
|
|
"pytest>=9.0.0",
|
|
|
|
|
"pytest-cov>=7.0.0",
|
|
|
|
|
"black>=25.0",
|
|
|
|
|
"ruff>=0.9.0",
|
|
|
|
|
"mypy>=1.9.0",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
|
bowser = "main:main"
|
|
|
|
|
|
|
|
|
|
[tool.uv]
|
|
|
|
|
managed = true
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["src"]
|
|
|
|
|
|
|
|
|
|
[tool.black]
|
2026-01-12 09:22:34 +00:00
|
|
|
line-length = 120
|
2026-01-09 12:31:48 +00:00
|
|
|
target-version = ["py311"]
|
|
|
|
|
|
|
|
|
|
[tool.ruff]
|
2026-01-12 09:22:34 +00:00
|
|
|
line-length = 120
|
2026-01-09 12:31:48 +00:00
|
|
|
target-version = "py311"
|
2026-01-12 09:22:34 +00:00
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
2026-01-09 12:31:48 +00:00
|
|
|
select = ["E", "F", "W"]
|
|
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
|
python_version = "3.11"
|
|
|
|
|
warn_return_any = true
|
|
|
|
|
warn_unused_configs = true
|
|
|
|
|
disallow_untyped_defs = false
|
2026-01-09 12:37:21 +00:00
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
testpaths = ["tests"]
|
|
|
|
|
python_files = ["test_*.py"]
|
|
|
|
|
python_classes = ["Test*"]
|
|
|
|
|
python_functions = ["test_*"]
|
|
|
|
|
addopts = [
|
|
|
|
|
"-ra",
|
|
|
|
|
"--strict-markers",
|
|
|
|
|
"--strict-config",
|
|
|
|
|
"--showlocals",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.coverage.run]
|
|
|
|
|
source = ["src"]
|
|
|
|
|
omit = ["tests/*", "*/conftest.py"]
|
|
|
|
|
|
|
|
|
|
[tool.coverage.report]
|
|
|
|
|
exclude_lines = [
|
|
|
|
|
"pragma: no cover",
|
|
|
|
|
"def __repr__",
|
|
|
|
|
"raise AssertionError",
|
|
|
|
|
"raise NotImplementedError",
|
|
|
|
|
"if __name__ == .__main__.:",
|
|
|
|
|
"if TYPE_CHECKING:",
|
|
|
|
|
]
|