-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (121 loc) · 3.41 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (121 loc) · 3.41 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
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm[toml]>=6.2",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "causal_testing_framework"
authors = [{ name = "The CITCOM team" }]
description = "A framework for causal testing using causal directed acyclic graphs."
readme = "README.md"
requires-python = ">=3.11,<3.15"
license = { text = "MIT" }
keywords = ["causal inference","verification"]
dependencies = [
"lifelines",
"networkx>=3.4,<3.7",
"numpy>=1.26.0,<=2.4.4",
"pandas>=2.1",
"scikit_learn~=1.4",
"scipy>=1.12.0,<=1.17.1",
"statsmodels~=0.14",
"tabulate~=0.9",
"pydot~=2.0",
"pygad~=3.3",
"deap~=1.4.1",
"sympy~=1.14.0",
"pyarrow>=19.0.1,<25",
"fastparquet>=2024.11.0",
"tqdm~=4.67.1"
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"astroid==3.3.8",
"isort",
"pytest",
"pylint",
"black",
"autoapi",
"myst-parser",
"sphinx",
"sphinx-autoapi",
"sphinx_rtd_theme",
"nbsphinx",
"ipykernel",
"pandoc",
"pre-commit",
"tox",
]
test = [
"nbclient",
"nbformat",
"ipykernel",
]
[project.urls]
Homepage = "https://sites.google.com/sheffield.ac.uk/citcom/home"
Documentation = "https://causal-testing-framework.readthedocs.io/"
Repository = "https://github.com/CITCOM-project/CausalTestingFramework"
Issues = "https://github.com/CITCOM-project/CausalTestingFramework/issues"
[project.scripts]
causal-testing = "causal_testing.__main__:main"
[project.entry-points."estimators"]
LinearRegressionEstimator = "causal_testing.estimation.linear_regression_estimator:LinearRegressionEstimator"
LogisticRegressionEstimator = "causal_testing.estimation.logistic_regression_estimator:LogisticRegressionEstimator"
CubicSplineEstimator = "causal_testing.estimation.cubic_spline_estimator:CubicSplineEstimator"
InstrumentalVariableEstimator = "causal_testing.estimation.instrumental_variable_estimator:InstrumentalVariableEstimator"
IPCWEstimator = "causal_testing.estimation.ipcw_estimator:IPCWEstimator"
[project.entry-points."causal_effects"]
NoEffect = "causal_testing.testing.causal_effect:NoEffect"
SomeEffect = "causal_testing.testing.causal_effect:SomeEffect"
Positive = "causal_testing.testing.causal_effect:Positive"
Negative = "causal_testing.testing.causal_effect:Negative"
ExactValue = "causal_testing.testing.causal_effect:ExactValue"
[tool.setuptools.packages]
find = {}
[tool.setuptools_scm]
write_to = "causal_testing/_version.py"
[tool.black]
# https://github.com/psf/black
line-length = 120
target-version = ["py311"]
[tool.isort]
profile = "black"
line_length = 120
[tool.pytest.ini_options]
filterwarnings = [
"ignore:datetime.datetime.utcnow:DeprecationWarning:lifelines",
"ignore::DeprecationWarning:jupyter_client.*",
"ignore::RuntimeWarning:zmq.*",
]
minversion = "6.0"
python_files = [
"test_*.py",
"example_*.py"
]
[tool.tox]
requires = ["tox>=4.19"]
env_list = ["3.11","3.12","3.13","3.14"]
skip_missing_interpreters = false # fail if devs don’t have all required Python versions
# Base configuration for all test environments
[tool.tox.env_run_base]
description = "Run pytest under {base_python}"
extras = ["dev","test"]
deps = ["pytest"]
commands = [
[
"pytest",
"{posargs:tests}",
],
]
# Automatically test for type-checking (TODO: enable type checking in env_list in the future)
[tool.tox.env.type]
description = "Run type checks with mypy on the codebase"
deps = [
"mypy==1.18.2",
"types-cachetools>=5.5.0.20240820",
"types-chardet>=5.0.4.6"
]
commands = [["mypy","causal_testing"],["mypy","tests"]]