-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (69 loc) · 2.05 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (69 loc) · 2.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sublift"
version = "0.2.0"
description = "Incremental LTV measurement for subscription retention experiments: censored outcomes, discrete billing periods, anytime-valid inference."
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
keywords = [
"ab-testing", "experimentation", "causal-inference", "survival-analysis",
"churn", "retention", "subscription", "ltv", "uplift", "sequential-testing",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = [
"numpy>=1.24",
"scipy>=1.10",
"pandas>=2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4",
"pytest-cov>=4.1",
"ruff>=0.5",
]
[project.urls]
Homepage = "https://github.com/devjoinedthechat/sublift"
Repository = "https://github.com/devjoinedthechat/sublift"
Issues = "https://github.com/devjoinedthechat/sublift/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/sublift"]
[tool.hatch.build.targets.sdist]
include = ["src/", "tests/", "examples/", "docs/", "README.md", "LICENSE"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = ["slow: statistical validation by simulation"]
addopts = "-m 'not slow'"
[tool.ruff]
line-length = 110
src = ["src", "tests"]
target-version = "py310"
[tool.ruff.format]
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "W", "C4", "SIM", "RET", "PIE", "NPY"]
ignore = [
"E501", # line length is handled by the formatter
"SIM108", # ternaries are not always clearer than an if/else
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B011"]
[tool.coverage.run]
source = ["sublift"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"def __repr__",
]