-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (115 loc) · 2.99 KB
/
pyproject.toml
File metadata and controls
130 lines (115 loc) · 2.99 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
[build-system]
requires = ["setuptools >= 62", "wheel", "setuptools_scm[toml] >= 6.2"]
[project]
name = "differences"
authors = [{ name = "Bernardo Dionisi", email = "bernardo.dionisi@gmail.com" }]
description = "difference-in-differences estimation and inference in Python"
readme = "README.md"
license = { text = "GPLv3" }
keywords = [
"did",
"difference-in-differences",
"panel data",
"econometrics",
"causal inference"
]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.19",
"scipy>=1.8",
"pandas>=1.2",
"statsmodels>=0.14,<1.0",
"formulaic>=1.0,<2",
"tqdm>=4.64.1",
"joblib>=1.2.0",
"typing_extensions >= 4.0.0",
"polars>=1.32",
]
dynamic = ["version"]
[project.optional-dependencies]
all = [
"numpy>=1.19",
"scipy>=1.8",
"pandas>=1.2",
"statsmodels>=0.14,<1.0",
"formulaic>=1.0,<2",
"tqdm>=4.64.1",
"joblib>=1.2.0",
"typing_extensions >= 4.0.0",
"linearmodels",
]
test = [
"pytest",
"pytest-cov",
"pytest-xdist",
"nox",
"pyarrow",
]
lint = [
"ruff == 0.9.2",
]
typing = [
"mypy",
]
docs = [
"sphinx-tutorials == 0.0.7",
]
[project.urls]
Homepage = "https://github.com/bernardodionisi/differences"
Source = "https://github.com/bernardodionisi/differences"
Issues = "https://github.com/bernardodionisi/differences/issues"
Documentation = "https://bernardodionisi.github.io/differences/latest/"
[tool.setuptools_scm]
write_to = "src/differences/_version.py"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"differences.datasets" = ["*.csv", "*.parquet"]
[tool.distutils.bdist_wheel]
universal = false
[tool.ruff]
src = ["src"]
extend-include = ["*.ipynb"]
extend-exclude = ["build", "dist", "docs", "src/differences/_version.py"]
line-length = 99
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
# "SIM",# flake8-simplify
"I", # isort
]
ignore = ["E501", "E713", "E714", "E741"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.pytest.ini_options]
minversion = "6.2"
addopts = "-s --showlocals"
testpaths = ["tests"]
[tool.coverage.report]
exclude_lines = [
"@overload",
"if TYPE_CHECKING:",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"raise RuntimeError",
]
[tool.ruff.isort]
known-third-party = ["differences"]
required-imports = ["from __future__ import annotations"]