forked from lava-nc/lava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
182 lines (165 loc) · 4.73 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
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "lava-nc"
packages = [
{include = "lava", from = "src"},
{include = "tests"}
]
include = ["tutorials"]
version = "0.6.0"
description = "A Software Framework for Neuromorphic Computing"
homepage = "https://lava-nc.org/"
repository = "https://github.com/lava-nc/lava"
authors = [
"Intel's Neuromorphic Computing Lab and the open source community <[email protected]>"
]
license = "Lava uses multiple licenses and is licensed under BSD-3-Clause or LGPL-2.1-or-later"
keywords = [
"neuromorphic",
"ai",
"artificial intelligence",
"neural models",
"spiking neural networks"
]
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 :: The 3-Clause BSD License (BSD-3-Clause)",
"License :: OSI Approved :: GNU Lesser General Public License v2.1 or later (LGPL-2.1-or-later)",
"Operating System :: OS Independent"
]
[tool.poetry.urls]
"Issue and Bug Tracker" = "https://github.com/lava-nc/lava/issues"
"Questions and Answers" = "https://github.com/lava-nc/lava/discussions/categories/q-a"
"Frequently Asked Questions" = "https://github.com/lava-nc/lava/wiki/Frequently-Asked-Questions-(FAQ)"
"Discussions" = "https://github.com/lava-nc/lava/discussions"
[tool.poetry.dependencies]
python = ">=3.8, <3.11"
numpy = "^1.22.2"
scipy = "^1.8.0"
networkx = "<=2.8.7"
asteval = "^0.9.27"
[tool.poetry.dev-dependencies]
bandit = "1.7.4"
coverage = "^6.3.2"
darglint = "^1.8.1"
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"
matplotlib = "^3.5.1"
pep8-naming = "^0.12.1"
poetry = "^1.1.13"
unittest2 = "^1.1.0"
pandas = "^1.4.2"
pytest = "^7.2.0"
pytest-cov = "^3.0.0"
sphinx = { extras = ["toml"], version = "^4.4.0" }
sphinx-tabs = { extras = ["toml"], version = "^3.2.0" }
sphinx_rtd_theme = { extras = ["toml"], version = "^1.0.0" }
autopep8 = "^1.6.0"
ipykernel = "^6.15.0"
nbformat = "^5.3.0"
nbconvert = "^7.2.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"
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"serial",
]
[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 = 65
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", "-S404", "-S602"] # 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