-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (83 loc) · 2.45 KB
/
pyproject.toml
File metadata and controls
97 lines (83 loc) · 2.45 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
[project]
name = "votekit"
version = "3.4.0"
description = "A Swiss army knife for computational social choice research."
authors = [{name = "MGGG", email = "code@mggg.org"}]
readme = "README.md"
requires-python = ">=3.11, <3.14"
dependencies = [
"scipy (>=1.16.1, <2.0)",
"pydantic (>=2.11.9, <3.0)",
"networkx (>=3.5, <4.0)",
"jinja2 (>=3.1.6, <4.0)",
"matplotlib (>=3.10.5, <4.0)",
"pandas (>2.2)",
"apportionment (>=1.0, <2.0)",
"scikit-learn (>=1.7.1, <2.0)",
"numpy (>=2.3.3, <3.0)",
"seaborn (>=0.13.2,<0.14.0)",
"types-seaborn (>=0.13.2.20250728,<0.14.0.0)",
"numba (>=0.62.1,<0.62.2)",
"types-networkx (>=3.5.0.20250728,<4.0.0.0)",
"psutil (>=7.1.0,<8.0.0)",
"types-psutil (>=7.0.0.20250822,<8.0.0.0)",
]
[project.optional-dependencies]
animation = ["manim (>=0.19.0, <0.20.0)"]
[dependency-groups]
dev = [
"ruff>=0.13.2,<0.14.0",
"pytest>=8.4.2,<9.0.0",
"pytest-cov>=7.0.0,<8.0.0",
"pre-commit>=4.3.0,<5.0.0",
"ipython>=9.6.0,<10.0.0",
"recommonmark>=0.7.1,<0.8.0",
"ipykernel>=6.30.1,<7.0.0",
"ty>=0.0.21",
"scipy-stubs>=1.16.1.0,<2.0.0",
"pytest-mpl>=0.17.0,<0.18.0",
"pillow>=11.2.0,<12.0.0",
"pytest-xdist>=3.8.0",
]
docs = [
"sphinx>=8.2.3,<9.0.0",
"sphinx-copybutton>=0.5.2,<0.6.0",
"recommonmark>=0.7.1,<0.8.0",
"sphinx-rtd-theme>=3.0.2,<4.0.0",
"nbconvert>=7.16.6,<8.0.0",
]
notebooks = [
"gdown>=5.2.1",
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "W", "F", "I"]
task-tags = ["TODO", "FIXME", "XXX", "HACK", "NOTE", "FIX", "BUG"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 100
ignore-overlong-task-comments = true
[tool.ty]
[tool.ty.src]
include = ["src", "tests"]
[tool.ty.terminal]
output-format = "concise"
# error-on-warning = true # optional: fail CI on warnings too
[project.urls]
repository = "https://github.com/mggg/VoteKit"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/votekit"]
[tool.pytest.ini_options]
addopts = "-n auto -v -x"
markers = [
"slow: long-running tests",
]
testpaths = ["tests"]
filterwarnings = [
"ignore:The '__version__' attribute is deprecated and will be removed in Click 9\\.1.*:DeprecationWarning:cloup\\._util",
"ignore:invalid escape sequence '\\\\\\(':SyntaxWarning:pydub\\.utils",
"ignore:'audioop' is deprecated and slated for removal in Python 3\\.13:DeprecationWarning:pydub\\.utils",
]