-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (142 loc) · 3.52 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (142 loc) · 3.52 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "policyengine"
version = "4.17.9"
description = "A package to conduct policy analysis using PolicyEngine tax-benefit models."
readme = "README.md"
authors = [
{name = "PolicyEngine", email = "hello@policyengine.org"},
]
license = {file = "LICENSE"}
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3.9",
"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",
]
dependencies = [
"pydantic>=2.0.0",
"pandas>=2.0.0",
"h5py>=3.0.0",
"microdf_python>=1.2.1",
"jsonschema>=4.0.0",
"requests>=2.31.0",
"psutil>=5.9.0",
"packaging>=23.0",
"google-cloud-storage>=3.1.0,<4.0.0",
"diskcache>=5.6.3,<6.0.0",
]
[project.scripts]
policyengine = "policyengine.cli:main"
[project.optional-dependencies]
plotting = [
"plotly>=5.0.0",
]
graph = [
"networkx>=3.0",
]
uk = [
"policyengine_core>=3.26.1",
"policyengine-uk==2.88.20",
]
us = [
"policyengine_core>=3.27.1",
"policyengine-us==1.729.0",
]
dev = [
"pytest",
"furo",
"autodoc_pydantic",
"jupyter-book",
"yaml-changelog>=0.1.7",
"itables",
"build",
"plotly>=5.0.0",
"pytest-asyncio>=0.26.0",
"ruff>=0.9.0",
"policyengine_core>=3.27.1",
"policyengine-uk==2.88.20",
"policyengine-us==1.729.0",
"towncrier>=24.8.0",
"mypy>=1.11.0",
"pytest-cov>=5.0.0",
]
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"policyengine" = ["**/*"]
[tool.pytest.ini_options]
addopts = "-v"
testpaths = [
"tests",
]
filterwarnings = [
"ignore::pydantic.warnings.PydanticDeprecatedSince20",
]
[tool.ruff]
line-length = 88
target-version = "py39"
extend-exclude = ["*.ipynb"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # import sorting
"W", # pycodestyle warnings
"UP", # pyupgrade
]
ignore = [
"E501", # Ignore line length errors
# The following pyupgrade rules would require Python 3.10+, but we
# support 3.9+. Re-enable these once the 3.9 floor is dropped.
"UP006", # prefer `list` over `List` — OK on 3.9 at runtime, but for
# pydantic models we use typing.List for consistency
"UP007", # prefer `X | Y` over `Union[X, Y]` — needs 3.10+
"UP035", # `typing.List` is deprecated — same as UP006
"UP045", # prefer `X | None` over `Optional[X]` — needs 3.10+
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.towncrier]
package = "policyengine"
directory = "changelog.d"
filename = "CHANGELOG.md"
title_format = "## [{version}] - {project_date}"
issue_format = ""
underlines = ["", "", ""]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes"
showcontent = true
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true