1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
[project]
name = "generic"
version = "1.1.6"
description = "Generic programming library for Python"
authors = [
{ name = "Andrey Popp", email = "8mayday@gmail.com" },
{ name = "Arjan Molenaar", email = "gaphor@gmail.com" },
]
maintainers = [
{ name = "Arjan Molenaar", email = "gaphor@gmail.com" },
{ name = "Dan Yeaw", email = "dan@yeaw.me" },
]
readme = "README.md"
keywords = ["generic", "multi dispatch", "dispatch", "event"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
]
requires-python = ">=3.9"
dependencies = [
"exceptiongroup>=1.0.0 ; python_version < '3.11'",
]
[project.urls]
homepage = "https://generic.readthedocs.io/"
repository = "https://github.com/gaphor/generic"
documentation = "https://generic.readthedocs.io/"
[tool.poetry]
requires-poetry = ">=2.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3"
pytest-cov = "^7.0"
[tool.poetry.group.docs]
optional=true
[tool.poetry.group.docs.dependencies]
sphinx = ">=4.3,<8.0"
furo = ">=2022,<2026"
[tool.pytest.ini_options]
testpaths = [
"tests",
"docs",
]
addopts = [
"--doctest-modules",
"--doctest-glob='*.rst'",
"--import-mode=importlib",
]
[tool.coverage.run]
source = ["generic"]
[tool.mypy]
python_version = 3.9
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
check_untyped_defs = true
strict_optional = true
show_error_codes = true
ignore_missing_imports=true
warn_unused_ignores = true
namespace_packages = true
[[tool.mypy.overrides]]
module = [
"pytest.*",
"conf",
]
ignore_missing_imports = true
warn_unreachable = true
[tool.ruff]
exclude = [
".venv",
"dist",
]
line-length = 88
[tool.ruff.lint]
ignore = ["E501"]
select = [
"B",
"B9",
"C",
"E",
"F",
"W",
]
[tool.ruff.mccabe]
max-complexity = 18
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
|