-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (133 loc) · 3.67 KB
/
Copy pathpyproject.toml
File metadata and controls
145 lines (133 loc) · 3.67 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[build-system]
requires = ["setuptools>=68.0", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[project]
name = "groupoid"
version = "0.1.0.dev4"
description = "Research prototype: groupoid-based aggregation for federated learning on Riemannian manifolds"
readme = "README.md"
license = "Apache-2.0"
# Upper bound is real: the numpy<2.0 / scipy<1.14 pins below (required for
# geomstats compatibility) have no wheels for Python 3.13+, so 3.13 would
# attempt a doomed source build. Capping here makes pip refuse cleanly with a
# Requires-Python message instead. Supported: 3.10-3.12.
requires-python = ">=3.10,<3.13"
authors = [
{name = "Santiago Maniches", email = "santiago.maniches@gmail.com"},
]
keywords = [
"federated-learning",
"riemannian-geometry",
"groupoid",
"topology",
"sheaf-theory",
"cohomology",
"topological-data-analysis",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"geomstats>=0.7",
"pymanopt>=2.0",
"ripser>=0.6",
"persim>=0.3",
"POT>=0.9",
"networkx>=3.0",
"einops>=0.7",
"numpy>=1.24,<2.0",
"scipy>=1.10,<1.16",
"torch>=2.0",
"pydantic>=2.0",
"loguru>=0.7",
]
[project.optional-dependencies]
# Planned, not yet integrated into any code path
privacy = [
"opacus>=1.4",
"tenseal>=0.3",
]
numerical = [
"numba>=0.58",
"jax>=0.4",
"jaxlib>=0.4",
]
experiment = [
"wandb>=0.16",
]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"hypothesis>=6.0",
"pytest-benchmark>=4.0",
"pytest-xdist>=3.0",
"pytest-asyncio>=0.23",
"pre-commit>=3.0",
"bandit>=1.7",
"pip-audit>=2.7",
"ruff>=0.1",
"black>=23.0",
"mypy>=1.0",
]
docs = [
"mkdocs>=1.5",
"mkdocs-material>=9.0",
"mkdocstrings[python]>=0.24",
]
all = [
"groupoid[privacy,numerical,experiment,dev,docs]",
]
[project.urls]
Homepage = "https://github.com/smaniches/GROUPOID"
Repository = "https://github.com/smaniches/GROUPOID"
Documentation = "https://smaniches.github.io/GROUPOID"
Issues = "https://github.com/smaniches/GROUPOID/issues"
Changelog = "https://github.com/smaniches/GROUPOID/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
include = ["groupoid*"]
[tool.ruff]
target-version = "py310"
line-length = 99
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "SIM"]
ignore = ["N806"]
[tool.black]
target-version = ["py310"]
line-length = 99
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"slow: marks tests as slow",
"benchmark: marks benchmark tests",
]
asyncio_mode = "auto"
[tool.bandit]
exclude_dirs = ["tests", "benchmarks"]
[tool.coverage.run]
branch = true
source = ["groupoid"]
[tool.coverage.report]
# Honest gate: the committed test suite achieves 100% line + branch coverage
# on the supported interpreters (3.10-3.12). The only excluded lines are two
# provably-unreachable defensive guards in aggregation.py, each marked with
# `# pragma: no cover` and a one-line justification. Coverage is necessary but
# not sufficient for validation; per-module validation status is documented
# honestly in STATUS.md (some modules remain smoke-tested despite full
# coverage).
fail_under = 100
show_missing = true
exclude_lines = [
"pragma: no cover",
]