[project] name = "ritz" version = "0.1.0" description = "A WebAssembly UI framework with Python-like syntax" readme = "README.md" requires-python = ">=3.11" dependencies = [] [project.optional-dependencies] dev = [ "pytest>=8.3.0", "pytest-cov>=6.0.0", "pytest-watch>=4.2.0", "black>=24.10.0", "ruff>=0.8.0", "mypy>=1.13.0", "playwright>=1.48.0", "pytest-playwright>=0.6.0", ] [build-system] requires = ["setuptools>=75.0.0", "wheel"] build-backend = "setuptools.build_meta" [tool.black] line-length = 100 target-version = ['py311'] include = '\.pyi?$' extend-exclude = ''' /( # directories \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | build | dist )/ ''' [tool.ruff] line-length = 100 target-version = "py311" [tool.ruff.lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "B", # flake8-bugbear "C4", # flake8-comprehensions "UP", # pyupgrade ] ignore = [ "E501", # line too long, handled by black "B008", # do not perform function calls in argument defaults "C901", # too complex ] [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401"] [tool.pytest.ini_options] minversion = "8.0" addopts = "-ra -q --strict-markers" testpaths = ["tests"] python_files = ["test_*.py"] python_classes = ["Test*"] python_functions = ["test_*"] [tool.mypy] python_version = "3.11" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true disallow_incomplete_defs = true check_untyped_defs = true no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true warn_no_return = true strict_equality = true [[tool.mypy.overrides]] module = "tests.*" disallow_untyped_defs = false