forked from lava-nc/lava-dnf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
174 lines (156 loc) · 4.49 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
[tool.poetry]
name = "lava-dnf"
packages = [
{include = "lava", from = "src"},
{include = "tests"}
]
include = ["tutorials"]
version = "0.2.0.dev0"
readme = "README.md"
description = "A library that provides processes and other software infrastructure to build architectures composed of Dynamic Neural Fields (DNF)."
authors = ["Intel's Neuromorphic Computing Lab and the open source community <[email protected]>"]
homepage = "https://lava-nc.org/"
repository = "https://github.com/lava-nc/lava-dnf.git"
license = "(BSD-3-Clause)"
keywords = [
"neuromorphic",
"ai",
"artificial intelligence",
"neural models",
"spiking neural networks",
"dynamic neural fields",
"dnf"
]
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-dnf/issues"
"Questions and Answers" = "https://github.com/lava-nc/lava-dnf/discussions/categories/q-a"
"Frequently Asked Questions" = "https://github.com/lava-nc/lava-dnf/wiki/Frequently-Asked-Questions-(FAQ)"
"Discussions" = "https://github.com/lava-nc/lava-dnf/discussions"
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
lava-nc = { git = "https://github.com/lava-nc/lava.git", branch = "main", develop = true }
numpy = "^1.24.4"
scipy = "^1.10.1"
bandit = "^1.7.4"
[tool.poetry.dev-dependencies]
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"
networkx = "^2.7.1"
pep8-naming = "^0.12.1"
poetry = "^1.1.13"
pytest = "^7.2.0"
pytest-cov = "^3.0.0"
unittest2 = "^1.1.0"
ipykernel = "^6.15.0"
nbformat = "^5.3.0"
nbconvert = ">=7.2.10, <7.3"
[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 = 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"