-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (142 loc) · 3.66 KB
/
pyproject.toml
File metadata and controls
154 lines (142 loc) · 3.66 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
146
147
148
149
150
151
152
153
154
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "statphys-ml"
version = "0.1.0"
description = "Statistical mechanics simulation package for machine learning theory (Replica, Online Learning, DMFT)"
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE.txt"}
authors = [{name = "Yuma Ichikawa", email = "yuma.ichikawa@a.riken.jp"}]
keywords = [
"statistical mechanics",
"machine learning",
"replica method",
"online learning",
"teacher-student model",
"high-dimensional statistics",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Physics",
]
# Core dependencies (minimal for theory computations)
dependencies = [
"numpy>=1.24",
"torch>=2.0",
"scipy>=1.10",
"tqdm>=4.65",
]
[project.optional-dependencies]
# Visualization dependencies
vis = [
"matplotlib>=3.7",
"seaborn>=0.12",
"pandas>=2.0",
]
# Jupyter notebook support
notebook = [
"jupyter>=1.0",
"ipykernel>=6.0",
"ipywidgets>=8.0",
]
# Testing (includes vis for full test coverage)
test = [
"pytest>=7.0",
"pytest-cov>=4.0",
"matplotlib>=3.7",
"seaborn>=0.12",
"pandas>=2.0",
]
# Linting and type checking
lint = [
"black>=23.0",
"ruff>=0.1",
"mypy>=1.0",
"isort>=5.12",
]
# Development (test + lint + vis)
dev = [
"statphys-ml[test,lint,vis]",
]
# Documentation
docs = [
"sphinx>=6.0",
"sphinx-rtd-theme>=1.0",
"sphinx-autodoc-typehints>=1.23",
]
# All optional dependencies
all = [
"statphys-ml[dev,docs,notebook]",
]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[project.urls]
Homepage = "https://github.com/yuma-ichikawa/statphys-ml"
Documentation = "https://statphys-ml.readthedocs.io"
Repository = "https://github.com/yuma-ichikawa/statphys-ml"
Issues = "https://github.com/yuma-ichikawa/statphys-ml/issues"
Author-Website = "https://ichikawa-laboratory.com/"
Twitter = "https://x.com/yuma_1_or"
# Black configuration
[tool.black]
line-length = 100
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
# Ruff configuration
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "N", "D", "UP", "B", "C4", "SIM"]
ignore = [
"D100", "D102", "D104", "D105", "D107", # Missing docstrings
"D200", "D205", # One-line docstring formatting
"D203", "D212", "D213", # Docstring formatting
"D400", "D401", "D415", "D417", # Docstring content
"N802", "N803", "N806", "N812", # Naming conventions (allow math notation like W0, X, H)
"E741", # Ambiguous variable name (allow l for lambda)
"E501", # Line too long (handled by black)
"SIM103", "SIM108", # Simplify conditionals (allow explicit if-else)
"B007", # Loop control variable not used
]
# isort configuration
[tool.isort]
profile = "black"
line_length = 100
known_first_party = ["statphys"]
# mypy configuration
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
# pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --tb=short"