-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (98 loc) · 2.35 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (98 loc) · 2.35 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
[project]
name = "cax"
version = "0.3.3"
description = "Cellular Automata Accelerated in JAX"
authors = [{ name="Maxence Faldor", email="maxencefaldor@gmail.com" }]
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.12"
dependencies = [
"jax>=0.10.0",
"flax>=0.12.6",
"optax>=0.2.8",
"pillow>=11.1.0",
]
keywords = [
"complex systems",
"artificial life",
"open-endedness",
"emergence",
"self-organization",
"cellular automata",
"neural cellular automata",
]
classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3.0",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.5.0",
"ruff>=0.15.0",
"ty>=0.0.38",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
"mkdocs-jupyter",
]
examples = [
"torchvision>=0.21.0",
"tqdm>=4.67.0",
"evosax>=0.2.0",
"ipykernel>=6.29.0",
"ipywidgets>=8.1.0",
"mediapy>=1.2.0",
]
[project.urls]
Homepage = "https://github.com/maxencefaldor/cax"
Documentation = "https://maxencefaldor.github.io/cax/"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
src = ["src", "tests"]
target-version = "py314"
line-length = 100
[tool.ruff.lint]
select = ["B", "C4", "D", "E", "F", "I", "N", "PERF", "PT", "RUF", "SIM", "UP", "W"]
ignore = [
"D203", # incorrect-blank-line-before-class
"D206", # docstring-tab-indentation
"D213", # multi-line-summary-second-line
"N803", # non-lowercase-variable-in-function
"N806", # invalid-argument-name
"W191", # tab-indentation
]
[tool.ruff.lint.per-file-ignores]
"**/*.ipynb" = [
"B007", # unused-loop-control-variable
"B905", # zip-without-explicit-strict
"F811", # redefined-while-unused
"RUF005", # collection-literal-concatenation
"RUF059", # unused-unpacked-variable
]
[tool.ruff.format]
indent-style = "tab"
[tool.ty.environment]
python-version = "3.14"
[tool.ty.src]
include = ["src", "tests"]
[tool.ty.rules]
all = "error"
[tool.ty.analysis]
# JAX's type stubs are imprecise — e.g., jnp.roll, jnp.mgrid, nnx.Param arithmetic
replace-imports-with-any = ["flax.**"]
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = [
"error::DeprecationWarning",
"error::FutureWarning",
]