-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
118 lines (98 loc) · 2.46 KB
/
pyproject.toml
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
[tool.poetry]
name = "neurobench"
version = "1.0.6"
description = "Collaborative, Fair, and Representative Benchmarks for Neuromorphic Computing"
authors = ["NeuroBench Team <[email protected]>"]
readme = "README.rst"
exclude = ["docs", "tests", "neurobench/examples"]
[tool.poetry.dependencies]
python = "^3.10"
numpy = "^1.24.3"
torch = "^2.0.1"
torchaudio = "^2.0.2"
tqdm = "^4.65.0"
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.2.0'
docformatter = '1.7.5'
[tool.poetry.extras]
mackey-glass = ["jitcdde"]
nehar = ["pytorch-lightning", "gdown"]
[tool.black]
exclude = '/neurobench/examples/'
line-length = 88
[tool.docformatter]
exclude = '/neurobench/examples/'
check = true
recursive = true
wrap-summaries = 88
wrap-descriptions = 88
pre-summary-newline = true
blank = true
blck = true
[tool.flake8]
exclude = './neurobench/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 = [
"neurobench/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"]
build-backend = "poetry.core.masonry.api"