-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (109 loc) · 2.61 KB
/
pyproject.toml
File metadata and controls
119 lines (109 loc) · 2.61 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
[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.10,<3.14"
license = { text = "MIT" }
keywords = ["causal inference","verification"]
dependencies = [
"lifelines<=0.28.0; python_version <= '3.10'",
"lifelines; python_version > '3.10'",
"networkx>=3.4,<3.5",
"numpy>=1.26.0,<=2.2.0",
"pandas>=2.1,<3",
"scikit_learn~=1.4",
"scipy>=1.12.0,<1.14; python_version <= '3.10'",
"scipy>=1.12.0,<=1.16.2; python_version > '3.10'",
"statsmodels~=0.14",
"tabulate~=0.9",
"pydot~=2.0",
"pygad~=3.3",
"deap~=1.4.1",
"sympy~=1.13.1",
"pyarrow~=19.0.1",
"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"
[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 = ["py310"]
[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.10","3.11","3.12","3.13"]
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"]]