forked from cogent3/cogent3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
282 lines (261 loc) · 8.16 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "cogent3"
description = """COmparative GENomics Toolkit 3: genomic sequence analysis within notebooks or on compute systems with 1000s of CPUs."""
dynamic = ["version"]
authors = [
{ name = "Gavin Huttley", email = "[email protected]"},
]
keywords = ["biology", "genomics", "statistics", "phylogeny", "evolution", "bioinformatics"]
readme = "README.md"
license = { file = "LICENSE" }
dependencies = ["chardet",
"loky",
"numpy",
"numba>0.53; python_version>='3.9' and python_version <'3.12'",
"numba>0.54; python_version>='3.10' and python_version <'3.12'",
"numba>=0.57.0; python_version=='3.11'",
"numba>=0.59.0; python_version=='3.12'",
"scipy",
"scitrack",
"stevedore",
"tqdm",
"typing_extensions"]
# remember to update version in requires-python and classifiers
requires-python = ">=3.9,<3.13"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[project.urls]
Documentation = "https://www.cogent3.org/"
"Bug Tracker" = "https://github.com/cogent3/cogent3/issues"
"Source Code" = "https://github.com/cogent3/cogent3"
Changelog = "https://github.com/cogent3/cogent3/blob/develop/changelog.md"
[project.optional-dependencies]
test = [
"ruff==0.5.7",
"kaleido",
"pandas",
"plotly",
"psutil",
"pytest",
"pytest-cov",
"pytest-xdist",
"tinydb",
"nox"]
doc = ["click",
"ipykernel",
"ipython",
"ipywidgets",
"jupyter-sphinx",
"jupyter_client",
"jupyterlab",
"jupytext",
"kaleido",
"nbconvert>5.4",
"nbformat",
"nbsphinx",
"numpydoc",
"pandas",
"pillow",
"plotly",
"psutil",
"sphinx",
"sphinx-autobuild",
"pydata_sphinx_theme",
"sphinx_design",
"sphinxcontrib-bibtex",
"sphinxcontrib-video"]
extra = ["pandas", "plotly", "psutil", "kaleido"]
dev = ["ruff==0.5.7",
"flit",
"ipykernel",
"ipython",
"ipywidgets",
"jupyter-sphinx",
"jupyter_client",
"jupyterlab",
"jupytext",
"kaleido",
"nbconvert>5.4",
"nbformat",
"nbsphinx",
"nox",
"numpydoc",
"pandas",
"pillow",
"plotly",
"psutil",
"pytest",
"pytest-cov",
"pytest-xdist",
"scriv",
"sphinx",
"sphinx-autobuild",
"pydata_sphinx_theme",
"sphinx_design",
"sphinxcontrib-bibtex",
"sphinxcontrib-video",
"tinydb"
]
[tool.flit.sdist]
include = ["doc/", "requirements.txt", "src/*", "pyproject.toml"]
exclude = ["doc/*.html"]
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"internet: marks tests that require internet access (deselect with '-m \"not internet\"')",
"discontinued: mark tests as discontinued (deselect with '-m \"not discontinued\"')",
]
testpaths = "tests"
addopts = ["--strict-config"]
norecursedirs = ["doc", ".nox"]
filterwarnings = [
'ignore:FORCED EXIT from optimiser',
'ignore:Motif probs overspecified',
'ignore:Model not reversible',
]
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
# Same as Black.
line-length = 88
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["ALL"]
ignore = ["EXE002", "FA100", "E501", "D"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # asserts allowed in tests...
"INP001", # __init__.py files are not required...
"ANN",
"N802",
"N803"
]
"noxfile.py" = [
"S101", # asserts allowed in tests...
"INP001", # __init__.py files are not required...
"ANN",
"N802",
"N803"
]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "lf"
docstring-code-format = true
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"
[tool.ruff.lint.isort]
# group cogent3 imports last
known-first-party = ["cogent3"]
[tool.scriv]
format="md"
categories=["Contributors", "ENH", "BUG", "DOC", "Deprecations", "Discontinued"]
output_file="changelog.md"
version="literal: src/cogent3/_version.py:__version__"
skip_fragments="README.*"
new_fragment_template="file: changelog.d/templates/new.md.j2"
entry_title_template="file: changelog.d/templates/title.md.j2"
[project.entry-points."cogent3.app"]
concat = "cogent3.app.sample:concat"
fixed_length = "cogent3.app.sample:fixed_length"
load_aligned = "cogent3.app.io:load_aligned"
load_db = "cogent3.app.io:load_db"
load_json = "cogent3.app.io:load_json"
load_tabular = "cogent3.app.io:load_tabular"
load_unaligned = "cogent3.app.io:load_unaligned"
min_length = "cogent3.app.sample:min_length"
omit_bad_seqs = "cogent3.app.sample:omit_bad_seqs"
omit_degenerates = "cogent3.app.sample:omit_degenerates"
omit_duplicated = "cogent3.app.sample:omit_duplicated"
omit_gap_pos = "cogent3.app.sample:omit_gap_pos"
select_translatable = "cogent3.app.translate:select_translatable"
take_codon_positions = "cogent3.app.sample:take_codon_positions"
take_n_seqs = "cogent3.app.sample:take_n_seqs"
take_named_seqs = "cogent3.app.sample:take_named_seqs"
translate_seqs = "cogent3.app.translate:translate_seqs"
trim_stop_codons = "cogent3.app.sample:trim_stop_codons"
write_db = "cogent3.app.io:write_db"
write_json = "cogent3.app.io:write_json"
write_seqs = "cogent3.app.io:write_seqs"
write_tabular = "cogent3.app.io:write_tabular"
fast_slow_dist = "cogent3.app.dist:fast_slow_dist"
jaccard_dist = "cogent3.app.dist:jaccard_dist"
approx_pdist = "cogent3.app.dist:approx_pdist"
approx_jc69 = "cogent3.app.dist:approx_jc69"
gap_dist = "cogent3.app.dist:gap_dist"
scale_branches = "cogent3.app.tree:scale_branches"
uniformize_tree = "cogent3.app.tree:uniformize_tree"
quick_tree = "cogent3.app.tree:quick_tree"
align_to_ref = "cogent3.app.align:align_to_ref"
progressive_align = "cogent3.app.align:progressive_align"
smith_waterman = "cogent3.app.align:smith_waterman"
ic_score = "cogent3.app.align:ic_score"
cogent3_score = "cogent3.app.align:cogent3_score"
sp_score = "cogent3.app.align:sp_score"
model = "cogent3.app.evo:model"
model_collection = "cogent3.app.evo:model_collection"
hypothesis = "cogent3.app.evo:hypothesis"
bootstrap = "cogent3.app.evo:bootstrap"
ancestral_states = "cogent3.app.evo:ancestral_states"
tabulate_stats = "cogent3.app.evo:tabulate_stats"
natsel_neutral = "cogent3.app.evo:natsel_neutral"
natsel_zhang = "cogent3.app.evo:natsel_zhang"
natsel_sitehet = "cogent3.app.evo:natsel_sitehet"
natsel_timehet = "cogent3.app.evo:natsel_timehet"