-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
149 lines (134 loc) · 3.96 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
[tool.poetry]
name = "neural-data-simulator"
version = "v0.2.9"
description = "Electrophysiology simulator data for developing Brain-Computer Interfaces"
authors = [
"AE Studio <bci@ae.studio>",
"Chadwick Boulay <chadwick.boulay@gmail.com>",
]
maintainers = [
"Chadwick Boulay <chadwick.boulay@gmail.com>",
"AE Studio <bci@ae.studio>",
]
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
]
[tool.poetry.urls]
"Homepage" = "https://github.com/agencyenterprise/neural-data-simulator"
"Documentation" = "https://agencyenterprise.github.io/neural-data-simulator/"
"Bug Tracker" = "https://github.com/agencyenterprise/neural-data-simulator/issues"
[tool.poetry.dependencies]
python = ">=3.9,<3.12"
numpy = "^1.22.4"
pydantic = "^1.9.1"
pylsl = "^1.16.2"
colorednoise = "^2.2.0"
pydantic-yaml = "^0.9.0"
scipy = "^1.10.0"
pygame = "2.2.0.dev2"
pooch = "^1.7.0"
neo = "^0.12.0"
joblib = "^1.2.0"
matplotlib = "^3.7.1"
rich = ">=10.0.0"
scikit-learn = "1.2.1"
screeninfo = "0.8.1"
pyobjc-framework-Quartz = { version = "*", platform = "darwin" }
omegaconf = "^2.3"
[tool.poetry.dev-dependencies]
pytest = "^7.1.2"
pytest-cov = "^3.0.0"
pytest-mock = "^3.8.2"
black = "22.3.0"
flake8 = "^4.0.1"
flake8-spellcheck = "^0.28.0"
import-linter = "^1.12.0"
isort = "^5.10.1"
jupyter = "^1.0.0"
flake8-docstrings = "^1.6.0"
Sphinx = "^5.3.0"
myst-parser = "^0.19.0"
nlb-tools = "^0.0.1"
sphinx-material = "^0.0.35"
sphinx-rtd-theme = "^1.1.1"
sphinxcontrib-spelling = "^7.7.0"
pyenchant = "^3.2.2"
nbsphinx = "^0.8.12"
sphinx-gallery = "^0.11.1"
pyright = "^1.1.329"
toml = "^0.10.2"
[tool.poetry.group.dev.dependencies]
types-requests = "^2.28.11.8"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
nds_post_install_config = "neural_data_simulator.scripts.post_install_config:run"
encoder = "neural_data_simulator.scripts.run_encoder:run"
streamer = "neural_data_simulator.streamer.run_streamer:run"
ephys_generator = "neural_data_simulator.scripts.run_ephys_generator:run"
decoder = "neural_data_simulator.decoder.run_decoder:run"
recorder = "neural_data_simulator.recorder.run_recorder:run"
center_out_reach = "neural_data_simulator.tasks.run_center_out_reach:run"
run_closed_loop = "neural_data_simulator.tasks.run_closed_loop:run"
[tool.pytest.ini_options]
# note: not overriding 'norecursedirs' here in order to keep the default value
# instead, using --ignore in the command line argument in Makefile
markers = ["jitter: mark a test for timer jitter."]
pythonpath = ["src"]
[tool.black]
line-length = 88
extend-exclude = """(
docs
)"""
# Software architecture / interdependency checking
[tool.importlinter]
root_package = "neural_data_simulator"
[[tool.importlinter.contracts]]
id = "ext-ind"
name = "Extension modules should be independent"
type = "independence"
modules = [
"neural_data_simulator.decoder",
"neural_data_simulator.recorder",
"neural_data_simulator.streamer",
"neural_data_simulator.tasks",
"neural_data_simulator.plugins",
]
[[tool.importlinter.contracts]]
id = "core-ext"
name = "Core NDS should not depend on extension modules"
type = "forbidden"
source_modules = ["neural_data_simulator.core"]
forbidden_modules = [
"neural_data_simulator.decoder",
"neural_data_simulator.recorder",
"neural_data_simulator.streamer",
"neural_data_simulator.tasks",
"neural_data_simulator.plugins",
]
[tool.isort]
profile = "google"
src_paths = "."
known_first_party = "neural_data_simulator"
line_length = 88
multi_line_output = 3
include_trailing_comma = true
[tool.pyright]
include = ["src"]
# [tool.flake8]
# flake8 does not support config in pyproject.toml, see .flake8
[tool.poetry.extras]
extras = [
"pygame",
"screeninfo",
"matplotlib",
"joblib",
"scikit-learn",
"pyobjc-framework-Quartz",
]