-
Notifications
You must be signed in to change notification settings - Fork 69
/
pyproject.toml
187 lines (167 loc) · 4.99 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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "lava-dl"
packages = [
{include = "lava", from = "src"},
{include = "tests"}
]
include = ["tutorials"]
version = "0.7.0.dev0"
readme = "README.md"
description = "A library of deep learning tools, which consists of lava.lib.dl.slayer and lava.lib.dl.netx for training and deployment of event-based deep neural networks on traditional as well as neuromorphic backends. Lava-DL is part of Lava Framework"
homepage = "https://lava-nc.org/"
repository = "https://github.com/lava-nc/lava-dl"
authors = [
"Intel's Neuromorphic Computing Lab and the open source community <[email protected]>"
]
license = "(BSD-3-Clause)"
keywords = [
"neuromorphic",
"ai",
"artificial intelligence",
"neural models",
"spiking neural networks",
"deep learning"
]
classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent"
]
[tool.poetry.urls]
"Issue and Bug Tracker" = "https://github.com/lava-nc/lava-dl/issues"
"Questions and Answers" = "https://github.com/lava-nc/lava-dl/discussions/categories/q-a"
"Frequently Asked Questions" = "https://github.com/lava-nc/lava-dl/wiki/Frequently-Asked-Questions-(FAQ)"
"Discussions" = "https://github.com/lava-nc/lava-dl/discussions"
[tool.poetry.dependencies]
python = ">=3.10, <3.11"
lava-nc = { git = "https://github.com/lava-nc/lava.git", branch = "main", develop = true }
torchvision = ">=0.18.0,<0.19.0"
h5py = "^3.7.0"
ninja = "^1.10.2.3"
matplotlib = "^3.5.2"
numpy = "^1.24.4"
scipy = "^1.8.1"
pillow = ">=10.0.1,<11.0"
pytest = "^7.2.0"
unittest2 = "^1.1.0"
torch = ">=2.3.1,<2.4.0"
opencv-python-headless = "^4.8.1.78"
[tool.poetry.dev-dependencies]
pytest = "^7.4.2"
unittest2 = "^1.1.0"
bandit = "1.7.4"
coverage = "^6.3.2"
darglint = "^1.8.1"
nbconvert = ">=7.2.10, <7.3"
flake8 = "^4.0.1"
flake8-bandit = "^3.0.0"
flake8-bugbear = "^22.1.11"
flake8-builtins = "^1.5.3"
flake8-comprehensions = "^3.8.0"
flake8-docstrings = "^1.6.0"
flake8-eradicate = "^1.2.0"
flake8-isort = "^4.1.1"
flake8-mutable = "^1.2.0"
flake8-pytest-style = "^1.6.0"
flake8-spellcheck = "^0.25.0"
flakeheaven = "^3.2.1"
pep8-naming = "^0.11.1"
poetry = "^1.1.13"
pytest-cov = "^3.0.0"
black = "^24.3.0"
[tool.black]
line-length = 80
target-version = [
"py38"
]
include = "\\.pyi?$"
exclude = """
(
/(
\\.eggs
| \\.git
| \\.venv
| _build
| build
| dist
)/
)
"""
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "--strict-markers --cov=src/lava"
testpaths = [
"tests"
]
[tool.coverage.run]
relative_files = true
source = [
"src/lava",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplemented()",
"if __name__ == .__main__.:",
"main()",
"parser\\..",
"argparse\\..",
]
fail_under = 45
show_missing = true
[tool.flakeheaven]
extended_default_ignore=[] # Fix for bug while using newer flake8 ver.
format = "grouped"
max_line_length = 80
show_source = true
exclude = ["./docs/"]
[tool.flakeheaven.plugins]
flake8-bandit = ["+*", "-S322", "-B101"] # Enable a plugin, disable specific checks
# Disable below plugins temporarily until lint fix is pushed
flake8-bugbear = ["-*"]
flake8-builtins = ["-*"]
flake8-comprehensions = ["-*"]
flake8-darglint = ["-*"]
flake8-docstrings = ["-*"]
flake8-eradicate = ["-*"]
flake8-isort = ["-*"]
flake8-mutable = ["-*"]
flake8-pytest-style = ["-*"]
flake8-spellcheck = ["-*"]
mccabe = ["-*"]
pep8-naming = ["-*"]
# Excluding until lint fix is pushed
# flake8-bugbear = ["+*"] # Enable a plugin
# flake8-builtins = ["+*"]
# flake8-comprehensions = ["+*"]
# flake8-darglint = ["+*"]
# flake8-docstrings = ["+*"]
# flake8-eradicate = ["+*"]
# flake8-isort = ["+*"]
# flake8-mutable = ["+*"]
# flake8-pytest-style = ["+*"]
# flake8-spellcheck = ["-*"]
# mccabe = ["+*"]
# pep8-naming = ["+*"]
# pyflakes = ["+*"]
# pylint = ["+*"]
pycodestyle = ["+*", "-W503", "-E203"]
pyflakes = ["-*"] # Disable temporarily until lint fix is pushed
pylint = ["-*"] # Disable temporarily until lint fix is pushed
[tool.flakeheaven.exceptions."tests/"]
pycodestyle = ["-F401"] # Disable a check
flake8-bandit = ["-S101"] # Ignore asserts for tests
pyflakes = ["-*"] # Disable a plugin
[tool.flakeheaven.exceptions."src/lava/lib/dl/slayer/object_detection/models/*"]
pycodestyle = ["-E501", "-E241", "-E221"] # Disable a check
[tool.flakeheaven.exceptions."tutorials/lava/lib/dl/slayer/tiny_yolo_sdnn/train_sdnn.py"]
pycodestyle = ["-E501"] # Disable a check