-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
171 lines (159 loc) · 5.05 KB
/
pyproject.toml
File metadata and controls
171 lines (159 loc) · 5.05 KB
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
[project]
name = "genvarloader"
version = "0.27.0"
description = "Pipeline for efficient genomic data processing."
authors = [
{ name = "David Laub", email = "dlaub@ucsd.edu" },
{ name = "Aaron Ho", email = "aho@salk.edu" },
]
readme = "README.md"
license = { file = "LICENSE.txt" }
requires-python = ">=3.10,<3.14" # >= 3.14 blocked by pyarrow/genoray
dependencies = [
"seqpro>=0.14.0",
"genoray>=2.7.3,<3",
"numpy",
"numba>=0.59.1",
"loguru",
"natsort",
"polars>=1.37.1",
"cyvcf2",
"pandera",
"pysam",
"pyarrow",
"pyranges",
"pydantic>=2,<3",
"pydantic-extra-types[semver]>=2.10",
"more-itertools",
"tqdm",
"pybigwig",
"einops",
"joblib",
"pooch",
"awkward",
"hirola>=0.3,<0.4",
"filelock>=3.12",
]
[project.optional-dependencies]
cli = ["genvarloader-cli>=0.1.0"]
tbb = ['tbb']
pyomp = ['pyomp']
[project.urls]
source = "https://github.com/mcvickerlab/GenVarLoader"
documentation = "https://genvarloader.readthedocs.io/en/stable/"
issues = "https://github.com/mcvickerlab/GenVarLoader/issues"
[tool.ruff]
lint.ignore = ["E501"]
[tool.pyrefly]
project-includes = ["python/genvarloader", "tests"]
# Heuristics disabled: pyrefly otherwise auto-excludes our maturin source dir
# `python/` because the name collides with the site-packages heuristic.
disable-project-excludes-heuristics = true
project-excludes = [
"**/data/**",
"**/__pycache__/**",
"**/node_modules/**",
".venv/**",
".pixi/**",
"target/**",
]
preset = "strict"
# Per-error relaxations populated empirically below. Each entry MUST carry a
# one-line comment giving the reason for relaxation. The campaign's later PRs
# may tighten these back up as the surrounding code is improved.
[tool.pyrefly.errors]
# Codebase predates strict typing; numpy generics (np.ndarray, etc.) trigger
# this across hundreds of sites. PR8 (naming + type pass) revisits.
implicit-any-type-argument = false
implicit-any-parameter = false
implicit-any-empty-container = false
implicit-any-attribute = false
# Interop with optional deps (taichi, torch.nested internals, pyBigWig case
# mismatch with the pybigwig package). Not actionable in PR0.
missing-import = false
# Numpy / awkward / polars operator and iteration interop produces noisy
# false positives. PR5 (Pipeline refactor) and PR8 will revisit.
not-iterable = false
unsupported-operation = false
# Cosmetic Python 3.12 @override decorator — not a behavioral concern.
missing-override-decorator = false
# Polars / narwhals / numpy generic type-var upper-bound friction. Interop.
bad-specialization = false
# ArrayDataset / RaggedDataset overload stubs are inconsistent by design;
# PR3 of the campaign collapses these and the warnings disappear.
bad-override = "warn"
# Mostly the same ArrayDataset / RaggedDataset return-shape drift plus a few
# polymorphic-return sites that PR5/PR6 will narrow. Keep visible as WARN.
bad-return = "warn"
# numba ITYPE default + a default arg mismatch in a small kernel; revisit
# in PR8 once the surrounding code stabilizes.
bad-function-definition = "warn"
# Six call sites with overload friction (seqpro.cast_seqs, Dataset.open,
# numpy.reshape, genoray.get_record_info). Surface but don't block.
no-matching-overload = "warn"
# Soft type drift in places where pyrefly cannot narrow through dynamic
# polars / numpy code paths. Surface as WARN.
bad-argument-type = "warn"
missing-attribute = "warn"
bad-index = "warn"
bad-assignment = "warn"
# TorchDataset alias is `type[...] | (lambda raising NotImplementedError)`
# when torch is unavailable. Two sites; keep visible.
not-a-type = "warn"
[tool.maturin]
python-source = "python"
features = ["pyo3/extension-module"]
[tool.maturin.generate-ci.github]
platform = ['manylinux', 'musllinux', 'windows', 'macos']
[tool.pytest.ini_options]
pythonpath = ["."]
filterwarnings = [
"ignore::DeprecationWarning:ray.*",
"ignore::DeprecationWarning:pkg_resources.*",
"ignore::DeprecationWarning:jupyter_client.*",
"ignore::DeprecationWarning:sorted_nearest.*",
]
markers = ["slow: mark test as slow (deselect with '-m \"not slow\"')"]
[tool.coverage.run]
source = ["python/genvarloader"]
branch = true
omit = [
"*/tests/*",
"*/_builders/*",
"python/genvarloader/_dataset/_intervals.py",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"\\.\\.\\.",
"@nb.njit",
"@numba.njit",
"raise ImportError\\(\"PyTorch is not available",
]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
legacy_tag_formats = ['$version']
version_scheme = "semver2"
version_provider = "pep621"
update_changelog_on_bump = true
changelog_file = 'docs/source/changelog.md'
changlog_incremental = true
changelog_start_rev = "v0.9.1"
template = "docs/source/changelog.md.j2"
major_version_zero = true
allowed_prefixes = [
"Merge",
"Revert",
"Pull request",
"fixup!",
"squash!",
"[pre-commit.ci]",
]
[build-system]
requires = ["maturin>=1.6,<2.0"]
build-backend = "maturin"