forked from cytomining/pycytominer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
186 lines (168 loc) · 4.31 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
[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 <gregory.way@cuanschutz.edu>",
"Dave Bunten <dave.bunten@cuanschutz.edu>",
"Kenneth I. Brewer <ken@kenbrewer.com>",
]
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.8,<4.0"
numpy = ">=1.16.5"
scipy = ">=1.5"
pandas = ">=1.2.0"
scikit-learn = ">=0.21.2"
sqlalchemy = ">=1.3.6, <2"
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"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "*"
sphinx = "~7.1"
sphinx-autobuild = "^2021.3.14"
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.commitizen]
# This version is used for changelog tracking and is updated using `cz bump`
version = "1.1.0"
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"
]
[tool.ruff]
target-version = "py38"
line-length = 88
fix = true
[tool.ruff.lint]
select = [
# flake8-2020
"YTT",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# pycodestyle
"E", "W",
# pyflakes
"F",
# pygrep-hooks
"PGH",
# pyupgrade
"UP",
# ruff
"RUF",
# flake8-bandit
"S",
# isort
"I",
# The following checks are disabled, but we are working towards enabling them in the future.
# flake8-bugbear
# "B",
# mccabe
# "C90",
# tryceratops
# "TRY",
]
ignore = [
# LineTooLong
"E501",
# DoNotAssignLambda
"E731",
]
[tool.ruff.lint.per-file-ignores]
# Ignore `E402` and `F401` (unusued imports) in all `__init__.py` files
"__init__.py" = ["E402", "F401"]
# Ignore assert statements in tests
"tests/*" = ["S101"]
"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",
]
[tool.ruff.format]
preview = true
[tool.pytest.ini_options]
testpaths = "tests"
[build-system]
requires = ["poetry-core>=1.7.0", "poetry-dynamic-versioning>=1.1.0"]
build-backend = "poetry_dynamic_versioning.backend"
# Avoids warnings aboud missing section
# see: https://setuptools-scm.readthedocs.io/en/latest/usage/
[tool.setuptools_scm]