-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
177 lines (161 loc) · 3.66 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
[build-system]
requires = ["hatchling", "hatch-build-scripts"]
build-backend = "hatchling.build"
[project]
name = "metator"
version = "1.3.8"
description = "A pipeline for binning metagenomic datasets from metaHiC data."
readme = "README.md"
requires-python = ">=3.9,<3.13"
license = { text = "GNU General Public License v3 (GPLv3)" }
authors = [
{name = "Amaury Bignaud", email = "[email protected]"},
{name = "Jacques Serizay", email = "[email protected]"},
]
keywords = [
"metagenomics",
"bioinformatics"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Visualization",
"Operating System :: Unix",
]
dependencies = [
"hicstuff",
"networkx",
"checkv",
"biopython",
"pysam",
"pairtools",
"pyfastx",
"cooler",
"numpy",
"pandas",
"scikit-learn",
"scipy",
"seaborn",
"looseversion",
"micomplete",
"pypairix"
# NON PIP DEPENDENCIES
#"bowtie2"
#"bwa"
#"samtools"
#"prodigal"
#"hmmer"
#"openjdk"
]
[project.optional-dependencies]
test = [
"coverage[toml]",
"isort",
"pytest",
"pytest-cov",
"pytest-pylint",
"pytest-order",
"codecov",
"pylint",
"ruff",
]
docs = [
'autodoc',
'sphinx-autoapi',
"autodocsumm",
"sphinxcontrib-napoleon",
"m2r",
"recommonmark",
"Sphinx>=1.6",
"sphinx-autobuild",
"sphinx-click",
"furo",
"pydata-sphinx-theme",
"sphinx-rtd-theme",
"myst-parser",
"nbsphinx",
"lxml[html_clean]",
]
dev = [
"metator[test,docs]",
"hatch",
"hatchling",
"hatch-build-scripts",
"pre-commit",
"mypy",
"black",
"twine",
"ipython"
]
[project.urls]
homepage = "https://github.com/koszullab/metator"
documentation = "https://github.com/koszullab/metator"
repository = "https://github.com/koszullab/metator"
changelog = "https://github.com/koszullab/metator/blob/devel/CHANGELOG.md"
[project.scripts]
metator = "metator.main:main"
[tool.hatch.version]
path = "src/metator/version.py"
[tool.hatch.metadata]
allow-direct-references = true
[[tool.hatch.build.hooks.build-scripts.scripts]]
out_dir = "bin/"
work_dir = "external"
commands = ["bash setup_dependencies.sh"]
artifacts = []
[tool.hatch.build.force-include]
"bin" = "metator/bin"
[tool.black]
line-length = 130
target-version = ['py310']
[tool.ruff]
line-length = 130
src = ["src"]
exclude = [
"bench/*",
".venv",
"__main__.py",
]
lint.ignore = ["E402", "I001"]
lint.extend-select = [
"B", # bugbear
"E", # style errors
"F", # pyflakes
"I", # isort
"RUF", # ruff-specific rules
# "UP", # pyupgrade
"W", # style warnings
]
lint.isort.known-first-party = ["metator"]
[tool.pytest.ini_options]
markers = ["order: mark test to run in a specific order"]
minversion = "7"
log_cli_level = "INFO"
xfail_strict = true
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"--cov=metator",
"--cov-config=pyproject.toml",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
]
filterwarnings = ["ignore::PendingDeprecationWarning"]
testpaths = ["tests"]
[tool.coverage.run]
source = ["src/metator"]
omit = []
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"return NotImplemented",
"raise NotImplementedError"
]