-
Notifications
You must be signed in to change notification settings - Fork 36
/
pyproject.toml
215 lines (197 loc) · 4.84 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
203
204
205
206
207
208
209
210
211
212
213
214
215
[build-system]
build-backend = "poetry_dynamic_versioning.backend"
requires = [ "poetry-core>=1.7", "poetry-dynamic-versioning>=1.1" ]
[tool.poetry]
name = "pycytominer"
# This version is a placeholder updated during build by poetry-dynamic-versioning
version = "0.0.0"
description = "Python package for processing image-based profiling data"
authors = [
"Erik Serrano",
"Niranj Chandrasekaran",
"Dave Bunten",
"Kenneth I. Brewer",
"Jenna Tomkinson",
"Roshan Kern",
"Michael Bornholdt",
"Stephen Fleming",
"Ruifan Pei",
"John Arevalo",
"Hillary Tsang",
"Vincent Rubinetti",
"Erin Weisbart",
"Charlotte Bunne",
"Alexandr A. Kalinin",
"Rebecca Senft",
"Stephen J. Taylor",
"Nasim Jamali",
"Adeniyi Adeboye",
"Allen Goodman",
"Juan Caicedo",
"Anne E. Carpenter",
"Beth A. Cimini",
"Shantanu Singh",
"Gregory P. Way",
]
maintainers = [
"Gregory P. Way <[email protected]>",
"Dave Bunten <[email protected]>",
"Kenneth I. Brewer <[email protected]>",
]
license = "BSD-3-Clause"
readme = "README.md"
homepage = "https://pycytominer.readthedocs.io/"
repository = "https://github.com/cytomining/pycytominer"
include = [ { path = "poetry.lock", format = "sdist" } ]
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
numpy = ">=1.16.5"
scipy = ">=1.5"
pandas = ">=1.2.0"
scikit-learn = ">=0.21.2"
sqlalchemy = ">=1.3.6,<3"
pyarrow = ">=8.0.0"
# Extra dependencies for cell_locations
fsspec = { version = ">=2023.1.0", optional = true }
s3fs = { version = ">=2023.4.0", optional = true }
boto3 = { version = ">=1.26.79", optional = true }
fire = { version = ">=0.5.0", optional = true }
# Extra dependencies for collate
cytominer-database = { version = "0.3.4", optional = true }
[tool.poetry.extras]
cell-locations = [ "fsspec", "s3fs", "boto3", "fire" ]
collate = [ "cytominer-database" ]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pytest = ">=5.0.1"
codecov = ">=2.1.12"
pytest-cov = "^4.1.0"
pre-commit = ">=3.3.2"
commitizen = "^3.12.0"
ruff = ">=0.3.4,<0.8.0"
mypy = "^1.11.2"
types-openpyxl = "^3.1.5.20240918"
pandas-stubs = [
{ version = "<2.2.2.240909", python = "<3.10" },
{ version = "^2.2.2.240909", python = ">=3.10" },
]
types-sqlalchemy = "^1.4.53.38"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "*"
sphinx = ">=7.1,<7.5"
sphinx-autobuild = ">=2021.3.14,<2025.0.0"
sphinx-autoapi = "^3.0.0"
ipython = "^8.12"
groundwork-sphinx-theme = "^1.1.1"
sphinx-copybutton = "^0.5.2"
nbsphinx = "^0.9.3"
m2r2 = "^0.3.3.post2"
furo = "^2023.9.10"
mock = "^5.1.0"
autodoc = "^0.5.0"
dunamai = "^1.19.0"
[tool.poetry-dynamic-versioning]
enable = true
style = "pep440"
vcs = "git"
[tool.poetry-dynamic-versioning.substitution]
files = [ "pycytominer/__about__.py" ]
[tool.setuptools_scm]
# Avoids warnings about missing section
# see: https://setuptools-scm.readthedocs.io/en/latest/usage/
root = "."
[tool.ruff]
target-version = "py39"
line-length = 88
fix = true
format.preview = true
lint.select = [
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# pycodestyle
"E",
# pyflakes
"F",
# isort
"I",
# pygrep-hooks
"PGH",
# ruff
"RUF",
# flake8-bandit
"S",
# flake8-simplify
"SIM",
# flake8-debugger
"T10",
# pyupgrade
"UP",
"W",
# flake8-2020
"YTT",
# The following checks are disabled, but we are working towards enabling them in the future.
# flake8-bugbear
# "B",
# mccabe
# "C90",
# tryceratops
# "TRY",
]
lint.ignore = [
# LineTooLong
"E501",
# DoNotAssignLambda
"E731",
]
# Ignore `E402` and `F401` (unusued imports) in all `__init__.py` files
lint.per-file-ignores."__init__.py" = [ "E402", "F401" ]
lint.per-file-ignores."pycytominer/cyto_utils/*" = [
# I (isort) is ignored due to circular dependencies in the cyto_utils module
"I",
# S608 (raw sql operations) is ignored because it is a common pattern in the cyto_utils module
"S608",
]
# Ignore assert statements in tests
lint.per-file-ignores."tests/*" = [ "S101" ]
[tool.pytest.ini_options]
testpaths = "tests"
filterwarnings = [
"ignore::DeprecationWarning:pycytominer.*",
]
[tool.mypy]
exclude = [
# ignore notebook-based walkthroughs
"walkthroughs",
# ignore tests dir
"tests",
]
[[tool.mypy.overrides]]
# ignore missing import errors for the following
# packages which do not have standard type stubs
# or experience issues with imported types.
module = [
"sklearn.*",
"scipy.*",
"cytominer_database.*",
"fire.*",
"boto3.*",
"botocore.*",
]
ignore_missing_imports = true
[tool.commitizen]
# This version is used for changelog tracking and is updated using `cz bump`
version = "1.2.1"
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "commitizen"
update_changelog_on_bump = true
template = "dev_tools/commitizen/CHANGELOG.md.j2"
version_files = [
"CITATION.cff",
]