-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (87 loc) · 3.16 KB
/
Copy pathpyproject.toml
File metadata and controls
98 lines (87 loc) · 3.16 KB
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
[build-system]
requires = ["maturin>=1.13,<2.0"]
build-backend = "maturin"
[project]
name = "eunoia"
version = "0.5.0"
description = "Area-proportional Euler and Venn diagrams"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [{ name = "Johan Larsson", email = "johan@jolars.co" }]
keywords = ["euler", "venn", "diagram", "visualization", "set"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Matplotlib",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering :: Visualization",
"Typing :: Typed",
]
dependencies = ["matplotlib>=3.8", "narwhals>=1.9", "numpy>=1.26"]
[project.optional-dependencies]
docs = ["sphinx>=7", "furo", "myst-nb", "sphinx-copybutton", "sphinx-autobuild"]
# Interactive plotly backend (EulerFit.plot_plotly). fonttools measures text
# for label placement without a matplotlib renderer (see eunoia._metrics).
plotly = ["plotly>=5.0", "fonttools>=4.0"]
[dependency-groups]
dev = [
"pytest>=8",
"mypy>=1.10",
"pyright>=1.1",
"maturin>=1.13",
"pandas>=2",
"polars>=1",
"reprexpy>=0.3",
]
# Competitor fitters for the `benchmarks/` harness only. Kept out of `dev`,
# `docs`, and runtime deps: matplotlib-set-diagrams is GPL, so it must never
# enter the published wheel or the docs build. Install with
# `uv sync --group benchmark` (or `task benchmark`).
benchmark = ["matplotlib-venn>=1.1", "matplotlib-set-diagrams>=0.2"]
[project.urls]
Repository = "https://github.com/jolars/eunoia-py"
Documentation = "https://jolars.github.io/eunoia-py"
Issues = "https://github.com/jolars/eunoia-py/issues"
[tool.maturin]
module-name = "eunoia._eunoia"
python-source = "python"
[tool.ruff]
line-length = 88
target-version = "py311"
extend-exclude = ["docs/_build"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "SIM", "RUF"]
[tool.mypy]
python_version = "3.11"
strict = true
files = ["python/eunoia"]
# The optional plotly backend and its fonttools text metrics ship no (complete)
# type stubs; the modules that use them are otherwise strictly typed.
[[tool.mypy.overrides]]
module = ["plotly.*", "fontTools.*"]
ignore_missing_imports = true
[tool.pyright]
include = ["python/eunoia"]
pythonVersion = "3.11"
typeCheckingMode = "strict"
# matplotlib's stubs have many `Unknown` kwarg types that propagate to
# `partially unknown` warnings for routine calls (subplots, ax.text, ...);
# trust mypy strict instead.
reportUnknownMemberType = "none"
reportUnknownVariableType = "none"
reportUnknownArgumentType = "none"
# fonttools (and older plotly) ship no type stubs; the plotly backend is
# otherwise strictly typed. mypy strict does the heavy lifting.
reportMissingTypeStubs = "none"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"