-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (109 loc) · 3.78 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (109 loc) · 3.78 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "dialect"
dynamic = ["version"]
description = "An EM latent-variable model for mutual exclusivity and co-occurrence between cancer driver mutations, accounting for the background mutation rate."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "BSD-3-Clause" }
authors = [{ name = "Ahmed Shuaibi", email = "ashuaibi@princeton.edu" }]
keywords = [
"cancer-genomics",
"driver-mutations",
"mutual-exclusivity",
"co-occurrence",
"background-mutation-rate",
"bioinformatics",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = [
"numpy",
"pandas",
"scipy",
"networkx",
"scikit-learn",
"statsmodels",
"matplotlib",
"upsetplot",
"tqdm",
"typer",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-regressions",
"hypothesis",
"ruff",
"mypy",
"pre-commit",
]
docs = [
"sphinx",
"furo",
"myst-nb",
"sphinx-autodoc-typehints",
"sphinxcontrib-bibtex",
"sphinx-copybutton",
]
[project.scripts]
dialect = "dialect.__main__:main"
[project.urls]
Homepage = "https://github.com/raphael-group/dialect"
Repository = "https://github.com/raphael-group/dialect"
Preprint = "https://www.biorxiv.org/content/10.1101/2024.04.24.590995v1"
# --------------------------------------------------------------------------- #
# BUILD (hatchling) #
# --------------------------------------------------------------------------- #
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/dialect/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/dialect"]
[tool.hatch.build.targets.sdist]
include = ["src/dialect", "tests", "README.md", "LICENSE"]
# --------------------------------------------------------------------------- #
# TOOLING #
# --------------------------------------------------------------------------- #
[tool.ruff]
line-length = 88
exclude = ["external/", "src/dialect/_version.py"]
[tool.ruff.lint]
select = ["ALL"]
ignore = ["D203", "D213", "FIX002"]
[tool.ruff.lint.per-file-ignores]
"docs/source/conf.py" = ["INP001", "D100", "A001"]
"tests/*" = ["S101", "INP001", "D100", "D103", "ANN", "PLR2004"]
"analysis/*" = ["INP001", "T201", "S603", "S607", "S108", "PLR2004", "C901", "PLR0912", "PLR0915"]
"scripts/*" = ["INP001", "T201", "S603", "S607", "PLR2004", "C901", "PLR0912", "PLR0915"]
"src/dialect/experiments/simulate.py" = ["PLR0913"]
"src/dialect/viz/plotting.py" = ["PLR0913", "FBT001"]
"src/dialect/baselines/wesme.py" = ["E402"]
"src/dialect/baselines/megsa.py" = ["S603", "S607"]
"src/dialect/config.py" = ["SLF001", "FBT001", "FBT002"]
"src/dialect/bmr/_cbase_run.py" = ["S603"]
"src/dialect/utils/identify.py" = ["FBT001"]
"src/dialect/utils/argument_parser.py" = ["FBT001", "FBT002", "PLR0913", "C901"]
# Typer needs call-in-default (B008) for Option(...); CLI commands are boolean-
# flagged and parameter-heavy by nature.
"src/dialect/cli/app.py" = ["B008", "FBT001", "FBT002", "FBT003", "PLR0913"]
"src/dialect/cli/simulate.py" = ["B008", "FBT001", "FBT002", "PLR0913"]
"src/dialect/baselines/runner.py" = ["FBT001"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"