forked from SainsburyWellcomeCentre/aeon_mecha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
191 lines (183 loc) · 4.32 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
[build-system]
requires = ["setuptools>=62.0", "wheel>=0.37"]
build-backend = "setuptools.build_meta"
[project]
name = "aeon_mecha"
version = "0.1.0"
requires-python = ">=3.11"
description = '''
Code for managing acquired data from Project Aeon experiments. Includes general file IO,
data QC, querying, and analysis modules.
'''
authors = [
{ name = "Jai Bhagat", email = "jkbhagatio@gmail.com" },
{ name = "Goncalo Lopes", email = "g.lopes@neurogears.org" },
{ name = "Thinh Nguyen", email = "thinh@datajoint.com" },
{ name = "Joseph Burling", email = "joseph@datajoint.com" },
{ name = "Chang Huan Lo", email = "changhuan.lo@ucl.ac.uk" },
{ name = "Jaerong Ahn", email = "jaerong.ahn@datajoint.com" },
]
license = { file = "license.md" }
readme = "readme.md"
dependencies = [
"bottleneck>=1.2.1,<2",
"datajoint>=0.13.7",
"datajoint-utilities @ git+https://github.com/datajoint-company/datajoint-utilities",
"dotmap",
"fastparquet",
"graphviz",
"ipykernel",
"jupyter",
"jupyterlab",
"matplotlib",
"numba>=0.46.0, <1",
"numexpr>=2.6.8, <3",
"numpy>=1.21.0, <2",
"opencv-python",
"pandas>=1.3",
"pillow",
"plotly",
"pyarrow",
"pydotplus",
"pymysql",
"pyyaml",
"scikit-learn",
"scipy",
"seaborn",
"xarray>=0.12.3",
]
[project.optional-dependencies]
dev = [
"bandit",
"gh",
"ipdb",
"pre-commit",
"pyan3 @ git+https://github.com/Technologicat/pyan.git",
"pydantic",
"pyright",
"pytest",
"pytest-cov",
"sphinx",
"ruff",
"tox",
]
gpu = ["cupy", "dask"]
[project.scripts]
aeon_ingest = "aeon.dj_pipeline.populate.process:cli"
[project.urls]
Homepage = "https://sainsburywellcomecentre.github.io/aeon_docs/"
Repository = "https://github.com/sainsburyWellcomeCentre/aeon_mecha"
Documentation = "https://sainsburywellcomecentre.github.io/aeon_docs/"
DataJoint = "https://docs.datajoint.org/"
[tool.setuptools.packages.find]
include = ["aeon*"]
[tool.ruff]
lint.select = [
"E",
"W",
"F",
"I",
"D",
"UP",
"S",
"B",
"A",
"C4",
"ICN",
"PIE",
"PT",
"SIM",
"PL",
]
line-length = 108
lint.ignore = [
"D100", # skip adding docstrings for module
"D104", # ignore missing docstring in public package
"D105", # skip adding docstrings for magic methods
"D107", # skip adding docstrings for __init__
"E201",
"E202",
"E203",
"E231",
"E731",
"E702",
"S101",
"PT004", # Rule `PT004` is deprecated and will be removed in a future release.
"PT013",
"PLR0912",
"PLR0913",
"PLR0915",
]
extend-exclude = [
".git",
".github",
".idea",
"*.ipynb",
".vscode",
"aeon/dj_pipeline/streams.py",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D103", # skip adding docstrings for public functions
]
"aeon/schema/*" = [
"D101", # skip adding docstrings for schema classes
"D106", # skip adding docstrings for nested streams
]
"aeon/dj_pipeline/*" = [
"B006",
"B021",
"D101", # skip adding docstrings for table class since it is added inside definition
"D102", # skip adding docstrings for make function
"D103", # skip adding docstrings for public functions
"D106", # skip adding docstrings for Part tables
"E501",
"F401", # ignore unused import errors
"B905", # ignore unused import errors
"E999",
"S324",
"E722",
"S110",
"F821",
"B904",
"UP038",
"S607",
"S605",
"D205",
"D202",
"F403",
"PLR2004",
"SIM108",
"PLW0127",
"PLR2004",
"I001",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pyright]
useLibraryCodeForTypes = false
reportMissingImports = "none"
reportImportCycles = "error"
reportUnusedImport = "error"
reportUnusedClass = "error"
reportUnusedfunction = "error"
reportUnusedVariable = "error"
reportDuplicateImport = "error"
reportWildcardImportFromLibrary = "error"
reportPrivateUsage = "error"
reportCallInDefaultInitializer = "error"
reportUnnecessaryIsInstance = "error"
reportUnnecesaryCast = "error"
reportUnnecesarryComparison = "error"
reportUnnecessaryContains = "error"
reportAssertAlwaysTrue = "error"
reportSelfClsParameterName = "error"
reportUnusedExpression = "error"
reportMatchNotExhaustive = "error"
reportShadowedImports = "error"
# *Note*: we may want to set all 'ReportOptional*' rules to "none", but leaving 'em default for now
venvPath = "."
venv = ".venv"
exclude = ["aeon/dj_pipeline/*", ".venv/*"]
[tool.pytest.ini_options]
markers = ["api"]