-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
170 lines (156 loc) · 4.11 KB
/
Copy pathpyproject.toml
File metadata and controls
170 lines (156 loc) · 4.11 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
[build-system]
requires = [
"setuptools>=42",
"wheel",
"numpy>=1.10.0",
]
build-backend = "setuptools.build_meta"
[project]
name = "mepylome"
version = "0.12.0"
description = "Python package for processing Infinium DNA methylation arrays"
readme = "README.md"
authors = [
{ name = "Jon Brugger" }
]
license = "MIT"
keywords = ["Illumina", "Methylation", "Infinium", "Microarray", "BeadChip"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Software Development"
]
requires-python = ">=3.12"
dependencies = [
"dash>=2.16.0",
"dash_bootstrap_components",
"numpy",
"odfpy",
"openpyxl",
"pandas",
"plotly",
"psutil",
"pyranges1",
"scikit-learn",
"tqdm",
"toml",
"umap-learn",
"numba",
"xlrd",
"xxhash"
]
[project.optional-dependencies]
seg = [
"ruptures", # segmentation algorithm
]
dev = [
"build", # PEP 517 build frontend (python -m build)
"ipython", # interactive REPL
"ipywidgets", # interactive notebook widgets
"jupyter", # notebook server & tools
"jupytext", # sync notebooks and scripts
"kaleido==0.2.1", # stable image export for Plotly
"mypy", # static type checking
"nbstripout", # strip outputs from committed notebooks
"pillow", # image handling (capitalized PyPI name)
"pytest", # test code
"pytest-cov", # Coverate rate of tests via pytest --cov=mepylome
"ruff", # fast linter
"ruptures", # segmentation algorithm
"sphinx", # docs generator
"sphinx-rtd-theme", # ReadTheDocs theme for HTML docs
"sphinx-autodoc-typehints", # for docs
"tuna", # profiler / tuning (lightweight)
"twine", # upload releases to PyPI
"ty", # static type checking
]
[project.urls]
Homepage = "https://github.com/brj0/mepylome"
[tool.setuptools]
packages = { find = {} }
include-package-data = true
[project.scripts]
mepylome = "mepylome.cli:start_mepylome"
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = [
# Annotation
"ANN",
# pycodestyle - missing docstring
"D",
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# pandas-vet
"PD",
# Pylint
"PL",
# Trailing whitespace
"W",
]
ignore = [
# Dynamically typed expressions (typing.Any) are disallowed in `*args`
"ANN401",
# Relax the convention by _not_ requiring documentation for every function
# parameter.
"D417",
# Missing docstring in `__init__`
"D107",
# Missing docstring in public method
"D102",
# Missing docstring in magic method
"D105",
# Use `.to_numpy()` instead of `.values`
"PD011",
# `print` found
"T201",
# Trailing comma missing
"COM812",
# Magic value used in comparison
"PLR2004",
# Too many return statements
"PLR0911",
# `import` should be at the top-level of a file
"SIM115",
# Too many arguments in function definition
"PLC0415",
# Too many arguments in function definition
"PLR0913",
# Too many statements
"PLR0915",
]
[tool.ruff.lint.per-file-ignores]
"examples/**" = ["ANN", "B018", "D100", "D101", "E402", "E501"]
"scripts/**" = ["ANN", "D103"]
"tests/**" = ["E402", "D103"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
disallow_untyped_defs = true
warn_unused_ignores = true
warn_redundant_casts = true
exclude = ["trash/", "examples/"]
show_column_numbers = true
pretty = true
[tool.ty.src]
exclude = ["examples"]
[tool.ty.terminal]
output-format = "concise"
[tool.ty.rules]
unresolved-import = "ignore"