-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (147 loc) · 4.41 KB
/
pyproject.toml
File metadata and controls
163 lines (147 loc) · 4.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
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
160
161
162
163
# HAFiscal is a research project, not an installable package
# This pyproject.toml manages dependencies only (no build-system needed)
[project]
name = "hafiscal"
version = "1.0.0"
description = "HAFiscal: Household Fiscal Policy Model"
requires-python = ">=3.9,<3.10"
authors = [
{name = "Christopher D. Carroll", email = "ccarroll@llorracc.org"},
]
readme = "README.md"
license = {text = "Apache-2.0"}
keywords = ["economics", "computational", "fiscal-policy", "heterogeneous-agents"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Economics",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
# Economics packages
"econ-ark==0.14.1",
"sequence-jacobian==1.0.0",
# Core scientific computing stack
"numpy>=1.24,<2",
"scipy>=1.10",
"pandas>=2.0", # Required for empirical data processing (make_liquid_wealth.py)
"matplotlib>=3.7",
"numba>=0.57",
]
[dependency-groups]
# Jupyter and interactive tools
jupyter = [
"jupyter>=1.0",
"notebook>=7.0",
"ipykernel>=6.0",
"voila>=0.5.6",
"ipywidgets>=8.0",
"ipynb-py-convert>=0.4",
]
# Statistical analysis and visualization
analysis = [
"statsmodels>=0.14",
"seaborn>=0.12",
]
# Development and testing
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"black>=23.0",
"ruff>=0.1.0",
"mypy>=1.0",
"pdfx>=1.4.1", # PDF link extraction for build validation
]
# QE submission workflow tools
# Note: README.pdf generation now uses pandoc (system tool) instead of markdown-pdf
# Install pandoc: brew install pandoc (macOS) or apt-get install pandoc (Linux)
qe = [
]
# All dependencies for complete environment
all = [
{include-group = "jupyter"},
{include-group = "analysis"},
{include-group = "dev"},
{include-group = "qe"},
]
# ============================================================================
# SYSTEM DEPENDENCIES (NOT MANAGED BY UV)
# ============================================================================
# The following system-level tools are required but CANNOT be installed via uv:
#
# REQUIRED:
# - LaTeX (pdflatex, bibtex, latexmk) - For PDF generation
# Install: ./setup-tex.sh --full
# Versions: TeX Live 2020+ or MiKTeX 2020+
#
# - rpl - Text replacement tool for build scripts
# Install (macOS): brew install rpl
# Install (Linux): apt-get install rpl # or: pip install rpl
# Versions: Any recent version
#
# OPTIONAL:
# - Docker - For DevContainer development environment
# Install: https://docs.docker.com/get-docker/
#
# - pandoc - For README.md to PDF conversion (QE workflow)
# Install (macOS): brew install pandoc
# Install (Linux): apt-get install pandoc
# Used by: QE-SUBMISSION-PREPARE.md
# Requires: lualatex (provided by luatex package in TeX Live)
#
# To check/install system dependencies:
# ./check-system-deps.sh # Check what's installed
# ./check-system-deps.sh --install # Auto-install missing deps
#
# Why not in pyproject.toml?
# - uv/pip only manage Python packages
# - System binaries (LaTeX, Docker, rpl) must be installed at OS level
# - See README-UV-SETUP.md for details
# ============================================================================
[tool.setuptools]
# HAFiscal is a research project, not an installable package
# Disable automatic package discovery to avoid setuptools errors
py-modules = []
[tool.setuptools.packages.find]
# Explicitly exclude all directories from package discovery
where = ["."]
exclude = ["*"]
[tool.uv]
# UV will manage Python version based on requires-python
# No additional configuration needed
# Some users may need to add the following commented out lines if working behind a firewall
# [[tool.uv.index]]
# name = " name where uv packages are found e.g. nexus"
# url = " URL where uv packages are found "
# default = true
[tool.ruff]
line-length = 88
target-version = "py39"
extend-exclude = [
".venv",
"venv",
"build",
"dist",
]
[tool.black]
line-length = 88
target-version = ['py39']
extend-exclude = '''
/(
\.venv
| venv
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["Code", "reproduce"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"