forked from better/convoys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
76 lines (66 loc) · 1.57 KB
/
pyproject.toml
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
[project]
name = "convoys2"
version = "0.4.0"
description = "Implementation of statistical models to analyze time lagged conversions"
readme = "README.md"
authors = [
]
requires-python = ">=3.12,<3.14"
dependencies = [
'autograd>=1.7.0',
'autograd-gamma>=0.2.0',
'numpy>=2.0.0,<3', # autograd 1.7 will break with v3
'scipy>=1.15.0,<2', # autograd 1.7 will break with v2
'emcee>=3.0.0',
'matplotlib>=2.0.0',
'pandas>=0.24.0',
'progressbar2>=3.46.1',
]
[dependency-groups]
dev = [
"pytest",
"ruff",
"mypy",
"pandas-stubs",
"flaky",
]
docs = [
"sphinx"
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/convoys"]
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
select = ["A", "B", "E", "F", "I"]
[tool.mypy]
python_version = "3.12"
files = [
"src/**/*.py",
"tests/**/*.py",
"examples/**/*.py",
]
mypy_path = "stubs,examples,tests"
show_column_numbers = true
# show error messages from unrelated files
follow_imports = "normal"
# be strict
disallow_untyped_calls = true
disallow_untyped_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
strict_optional = true
warn_return_any = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
no_implicit_reexport = true
strict_equality = true