-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (101 loc) · 2.51 KB
/
pyproject.toml
File metadata and controls
121 lines (101 loc) · 2.51 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
[tool.poetry]
name = "neurobench"
version = "2.2.0"
description = "Collaborative, Fair, and Representative Benchmarks for Neuromorphic Computing"
authors = ["NeuroBench Team <neurobench@googlegroups.com>"]
readme = "README.rst"
exclude = ["docs", "tests", "examples"]
[tool.poetry.dependencies]
python = "^3.10"
numpy = [
{version = ">=1.24.3", python = "<3.12"},
{version = ">=1.25.0", python = ">=3.12"}
]
torch = ">=2.0.1"
torchaudio = ">=2.0.2"
tqdm = "^4.63.3"
tonic = "^1.4.0"
numba = ">=0.57.1"
llvmlite = ">=0.40.1"
snntorch = {version = ">=0.7.0"}
jitcdde = {version = "^1.8.1", optional = true}
pytorch-lightning = {version = "^1.4.0", optional = true}
gdown = {version = "^4.7.1", optional = true}
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pytest = "^7.0.0"
pytest-cov = "^4.1.0"
jitcdde = "^1.8.1"
pytorch-lightning = "^1.4.0"
gdown = "^4.7.1"
librosa = "^0.10.1"
sphinx = "^7.2.5"
sphinx-rtd-theme = "^1.3.0"
pre-commit = "*"
[tool.poetry.group.code-quality]
optional = true
[tool.poetry.group.code-quality.dependencies]
pyproject-flake8 = '7.0.0'
black = '24.3.0'
docformatter = '1.7.5'
pre-commit = "3.8.0"
[tool.poetry.extras]
mackey-glass = ["jitcdde"]
nehar = ["pytorch-lightning", "gdown"]
[tool.black]
exclude = '/examples/'
line-length = 88
[tool.docformatter]
exclude = '/examples/'
recursive = true
wrap-summaries = 88
wrap-descriptions = 88
pre-summary-newline = true
blank = true
black = true
[tool.flake8]
exclude = './examples/'
count = true
statistics = true
show-source = true
max-line-length = 88
extend-ignore = ["E501", "E203", "W291", "W503", "F403", "F401", "F821"]
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = [
"tests/test_preprocessors",
"tests/test_accumulators.py",
"tests/test_benchmarks.py",
"tests/test_frameworks.py",
"tests/test_metrics.py",
]
[tool.coverage.run]
branch = true
include = [
"neurobench/*",
]
omit = [
"examples/*",
"neurobench/datasets/*",
"neurobench/tests/*",
]
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if self\\.debug",
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
format = 'markdown'
[tool.coverage.xml]
output = "coverage/reports/coverage.xml"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"