-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (86 loc) · 2.31 KB
/
pyproject.toml
File metadata and controls
94 lines (86 loc) · 2.31 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
[project]
name = "jpc"
version = "1.0.0"
description = "Flexible Inference for Predictive Coding Networks in JAX."
readme = "README.md"
requires-python =">=3.10"
license = {file = "LICENSE"}
authors = [
{name = "Francesco Innocenti", email = "F.Innocenti@sussex.ac.uk"},
]
keywords = [
"jax",
"predictive-coding",
"neural-networks",
"hybrid-predictive-coding",
"deep-learning",
"local-learning",
"inference-learning",
"mupc"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
]
urls = {repository = "https://github.com/thebuckleylab/jpc"}
dependencies = [
"jax>=0.4.38,<=0.5.2", # to prevent jaxlib import error
"equinox>=0.11.2",
"diffrax>=0.6.0",
"optax>=0.2.4",
"jaxtyping>=0.2.24",
"pytest-cov>=4.0.0"
]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.hatch.build]
include = ["jpc/*"]
[tool.ruff]
extend-include = ["*.ipynb"]
src = []
[tool.ruff.lint]
fixable = ["I001", "F401"]
ignore = ["E402", "E721", "E731", "E741", "F722"]
ignore-init-module-imports = true
select = ["E", "F", "I001"]
[tool.ruff.lint.isort]
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
lines-after-imports = 2
order-by-type = false
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
norecursedirs = [".git", "venv", "site", "jpc.egg-info", "examples", "experiments", "jpc"]
[tool.coverage.run]
source = ["jpc"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
"*/site/*",
"*/examples/*",
"*/experiments/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]