-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (132 loc) · 4.2 KB
/
Copy pathpyproject.toml
File metadata and controls
148 lines (132 loc) · 4.2 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
[project]
name = "bam2tensor"
version = "2.8"
description = "Convert bisulfite-seq and EM-seq BAM files to sparse tensor representations of DNA methylation"
authors = [{ name = "Nick Semenkovich", email = "semenko@alum.mit.edu" }]
license = "MIT"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Typing :: Typed",
]
dependencies = [
"click>=8.0.1",
"numpy>=1.26.0",
"scipy>=1.11.4",
"tqdm>=4.66.1",
"biopython>=1.81",
"pysam>=0.22.0",
]
[project.urls]
Homepage = "https://github.com/mcwdsi/bam2tensor"
Repository = "https://github.com/mcwdsi/bam2tensor"
Documentation = "https://mcwdsi.github.io/bam2tensor"
Changelog = "https://github.com/mcwdsi/bam2tensor/releases"
[project.scripts]
bam2tensor = "bam2tensor.__main__:main"
bam2tensor-inspect = "bam2tensor.inspect:main"
[dependency-groups]
dev = [
"pygments>=2.18.0",
"black[jupyter]>=24.0.0",
"coverage[toml]>=7.0",
"darglint>=1.8.1",
"furo>=2024.1.29",
"mypy>=1.10.0",
"pre-commit>=3.7.0",
"pre-commit-hooks>=4.6.0",
"ruff>=0.4.0",
"pytest>=8.0.0",
"sphinx>=7.3.0",
"sphinx-autobuild>=2024.4.16",
"sphinx-autodoc-typehints>=2.1.0",
"sphinx-click>=6.0.0",
"typeguard>=4.3.0",
"xdoctest[colors]>=1.1.0",
"myst-parser>=3.0.0",
]
[tool.pytest.ini_options]
pythonpath = ["src"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["bam2tensor"]
relative_files = true
[tool.coverage.report]
show_missing = true
fail_under = 10
[tool.mypy]
check_untyped_defs = true
strict = false
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_context = true
ignore_missing_imports = true
[tool.ruff]
force-exclude = true # Apply excludes to pre-commit
show-fixes = true
src = ["src", "tests"]
target-version = "py310" # Minimum Python version supported
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
extend-exclude = [
"__pycache__",
"old",
".ipynb_checkpoints",
"noxfile.py",
"docs/conf.py",
]
# Ruff rules may be customized as desired: https://docs.astral.sh/ruff/rules/
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
]
ignore = [
"ANN202", # Don't requiere return type annotation for private functions.
"ANN401", # Allow type annotation with type Any.
"D100", # Supress undocumented-public-module. Only doc of public api required.
"E402", # Supress module-import-not-at-top-of-file, needed in jupyter notebooks.
"E501", # Supress line-too-long warnings: trust black's judgement on this one.
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.pydocstyle]
convention = "google" # You can also use "numpy".
[tool.ruff.lint.pep8-naming]
classmethod-decorators = ["classmethod", "validator", "root_validator", "pydantic.validator"]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
"**/tests/*" = [
"ANN001", # type annotations don't add value for test functions
"ANN002", # type annotations don't add value for test functions
"ANN003", # type annotations don't add value for test functions
"ANN201", # type annotations don't add value for test functions
"ANN204", # type annotations don't add value for test functions
"ANN205", # type annotations don't add value for test functions
"ANN206", # type annotations don't add value for test functions
"D100", # docstrings are overkill for test functions
"D101",
"D102",
"D103",
"S101", # asserts are encouraged in pytest
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"