[build-system] requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" [project] name = "testdrive-jsui" version = "0.1.0" description = "JavaScript UI testing framework capability for MarkiTect" authors = [ {name = "MarkiTect Project", email = "markitect@example.com"} ] readme = "README.md" license = {text = "MIT"} requires-python = ">=3.8" classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Quality Assurance", ] dependencies = [ "pytest>=7.0.0", "pytest-xvfb>=3.0.0", # For headless browser testing "selenium>=4.0.0", # For browser automation if needed "pathlib2>=2.3.0;python_version<'3.4'", ] [project.optional-dependencies] dev = [ "pytest-cov>=4.0.0", "black>=23.0.0", "flake8>=6.0.0", "mypy>=1.0.0", "pre-commit>=3.0.0", ] testing = [ "pytest-mock>=3.10.0", "pytest-asyncio>=0.21.0", "pytest-timeout>=2.1.0", ] [project.urls] Homepage = "https://github.com/markitect/testdrive-jsui" Documentation = "https://docs.markitect.com/capabilities/testdrive-jsui" Repository = "https://github.com/markitect/testdrive-jsui" Issues = "https://github.com/markitect/testdrive-jsui/issues" [tool.setuptools.packages.find] where = ["src"] [tool.setuptools.package-dir] "" = "src" [tool.pytest.ini_options] testpaths = ["tests", "src/testdrive_jsui/tests"] python_files = ["test_*.py", "*_test.py"] python_classes = ["Test*"] python_functions = ["test_*"] addopts = [ "--strict-markers", "--strict-config", "--verbose", "-ra", "--cov=testdrive_jsui", "--cov-report=term-missing", "--cov-report=html", "--cov-fail-under=58", ] markers = [ "javascript: JavaScript integration tests", "slow: Slow running tests", "integration: Integration tests", "unit: Unit tests", ] [tool.coverage.run] source = ["src/testdrive_jsui"] omit = [ "*/tests/*", "*/test_*.py", "*/__pycache__/*", ] [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__.:", "class .*\\bProtocol\\):", "@(abc\\.)?abstractmethod", ] [tool.black] line-length = 88 target-version = ['py38'] include = '\.pyi?$' extend-exclude = ''' /( # directories \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | build | dist | node_modules )/ ''' [tool.mypy] python_version = "3.8" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true disallow_incomplete_defs = true check_untyped_defs = true disallow_untyped_decorators = true no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true warn_no_return = true warn_unreachable = true strict_equality = true [[tool.mypy.overrides]] module = "tests.*" disallow_untyped_defs = false