-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
202 lines (178 loc) · 5.54 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "blueetl"
description = "Multiple simulations analysis tool"
readme = "README.rst"
requires-python = ">=3.9"
license = { text = "Apache-2.0" }
authors = [
{ name = "Blue Brain Project, EPFL" },
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = [
"blueetl-core>=0.2.3",
"bluepysnap>=1.0.7",
"click>=8",
"jsonschema>=4.0",
"libsonata!=0.1.25;platform_system=='Darwin'",
"numpy>=1.19.4",
"pandas>=1.3.0",
"pyarrow>=7", # needed by pandas to read and write feather or parquet files
"pydantic>=2",
"pyyaml>=5.4.1",
"xarray>=0.18.0",
]
dynamic = ["version"]
[project.optional-dependencies]
extra = [
# extra requirements that may be dropped at some point
"tables>=3.6.1", # needed by pandas to read and write hdf files
]
external = [
# external requirements needed to run custom code in blueetl.external submodule
"elephant>=1.1.0",
"matplotlib>=3.4.3",
"neo<0.13.4", # pinned because 0.13.4 is incompatible with elephant 1.1.0
"quantities>=0.13.0",
"scipy>=1.8.0",
"seaborn>=0.11.2",
]
docs = [
"sphinx",
"sphinx-bluebrain-theme",
"sphinx-jsonschema",
"sphinxcontrib-programoutput",
"myst-nb",
]
all = ["blueetl[extra,external]"]
[project.urls]
Homepage = "https://github.com/BlueBrain/blueetl"
Repository = "https://github.com/BlueBrain/blueetl.git"
Documentation = "https://blueetl.readthedocs.io/"
Tracker = "https://github.com/BlueBrain/blueetl/issues"
[project.scripts]
blueetl = "blueetl.apps.main:cli"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
version_file = "src/blueetl/_version.py"
[tool.black]
line-length = 100
target-version = ["py39"]
include = 'src/blueetl\/.*\.py$|tests\/.*\.py$|doc\/source\/conf\.py$|setup\.py$'
[tool.isort]
profile = "black"
line_length = 100
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = [
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
]
ignore = ["D301", "D413"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
filterwarnings = [
"ignore::DeprecationWarning:nptyping",
]
log_level = "DEBUG"
[tool.coverage.paths]
source = [
"src",
"*/site-packages",
]
[tool.coverage.run]
branch = true
parallel = false
omit = [
"*/blueetl/_version.py",
"*/blueetl/adapters/impl/bluepy/*.py",
"*/blueetl/external/**/*.py",
]
[tool.coverage.report]
show_missing = true
precision = 0
fail_under = 90
[tool.pydocstyle]
# D301: Use r""" if any backslashes in a docstring
# D413: no blank line after last section
add_ignore = "D301,D413"
convention = "google"
[tool.pylint.main]
# Files or directories to be skipped. They should be base names, not paths.
ignore = ["CVS", "_version.py"]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-allow-list = ["numpy", "lxml", "pydantic"]
# List of plugins (as comma separated values of python module names) to load,
# usually to register additional checkers.
load-plugins = ["pylint_pydantic"]
# List of module names for which member attributes should not be checked.
ignored-modules = ["bluepy"]
[tool.pylint.design]
# Maximum number of arguments for function / method.
max-args = 8
# Maximum number of positional arguments for function / method.
max-positional-arguments = 5
# Maximum number of attributes for a class (see R0902).
max-attributes = 40
# Maximum number of boolean expressions in an if statement (see R0916).
#max-bool-expr = 5
# Maximum number of branch for function / method body.
max-branches = 12
# Maximum number of locals for function / method body.
max-locals = 15
# Maximum number of parents for a class (see R0901).
max-parents = 7
# Minimum number of public methods for a class (see R0903).
min-public-methods = 0
# Maximum number of public methods for a class (see R0904).
max-public-methods = 60
# Maximum number of return / yield for function / method body.
max-returns = 6
# Maximum number of statements in function / method body.
max-statements = 50
[tool.pylint.format]
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines = "\\bhttps?://\\S"
# Maximum number of characters on a single line.
max-line-length = 100
[tool.pylint."messages control"]
disable = ["fixme", "invalid-name", "len-as-condition", "no-else-return"]
[tool.pylint.similarities]
# Comments are removed from the similarity computation
ignore-comments = true
# Docstrings are removed from the similarity computation
ignore-docstrings = true
# Minimum lines number of a similarity.
min-similarity-lines = 25
[tool.pylint.typecheck]
# List of class names for which member attributes should not be checked (useful
# for classes with dynamically set attributes). This supports the use of
# qualified names.
ignored-classes = ["numpy", "list"]
[tool.pylint.variables]
# Argument names that match this expression will be ignored.
ignored-argument-names = "_.*"