Skip to content

Commit 5d813a1

Browse files
Move all source modules into sovereign_debt_xl/ package directory; add plots.py; 176 tests pass
Co-authored-by: zachessesjohnson <168567202+zachessesjohnson@users.noreply.github.com>
1 parent c033836 commit 5d813a1

28 files changed

+592
-27
lines changed

__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
# Stub out pyxll so xl_func acts as a pass-through decorator during tests.
55
pyxll_mock = MagicMock()
66
pyxll_mock.xl_func.side_effect = lambda *args, **kwargs: (lambda fn: fn)
7+
# xl_image: return the raw bytes from the BytesIO so tests can inspect PNG output.
8+
pyxll_mock.xl_image.side_effect = lambda data=None, **kw: (data.read() if hasattr(data, "read") else data)
79
sys.modules["pyxll"] = pyxll_mock
10+

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies = [
1313
"scipy",
1414
"statsmodels",
1515
"scikit-learn",
16+
"matplotlib",
1617
]
1718

1819
[project.optional-dependencies]
@@ -21,6 +22,3 @@ dev = ["pytest"]
2122
[tool.setuptools.packages.find]
2223
where = ["."]
2324
include = ["sovereign_debt_xl*"]
24-
25-
[tool.pytest.ini_options]
26-
addopts = "--import-mode=importlib"

pyxll.cfg

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
[PYXLL]
22
modules=
3-
sovereign_debt_xl.averaging
4-
sovereign_debt_xl.indexing
5-
sovereign_debt_xl.forecasting
6-
sovereign_debt_xl.modeling
7-
sovereign_debt_xl.utils
8-
sovereign_debt_xl.fiscal
9-
sovereign_debt_xl.credit_risk
10-
sovereign_debt_xl.yield_curve
11-
sovereign_debt_xl.reserves
12-
sovereign_debt_xl.stress
13-
sovereign_debt_xl.amortization
14-
sovereign_debt_xl.political_esg
15-
sovereign_debt_xl.contagion
16-
sovereign_debt_xl.debt_composition
17-
sovereign_debt_xl.macro_financial
18-
sovereign_debt_xl.market_microstructure
19-
sovereign_debt_xl.imf_framework
20-
sovereign_debt_xl.event_studies
3+
sovereign_debt_xl

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ pandas
33
scipy
44
statsmodels
55
scikit-learn
6+
matplotlib
67
pytest

sovereign_debt_xl/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from .averaging import * # noqa: F401,F403
2+
from .indexing import * # noqa: F401,F403
3+
from .forecasting import * # noqa: F401,F403
4+
from .modeling import * # noqa: F401,F403
5+
from .utils import * # noqa: F401,F403
6+
from .fiscal import * # noqa: F401,F403
7+
from .credit_risk import * # noqa: F401,F403
8+
from .yield_curve import * # noqa: F401,F403
9+
from .reserves import * # noqa: F401,F403
10+
from .stress import * # noqa: F401,F403
11+
from .amortization import * # noqa: F401,F403
12+
from .political_esg import * # noqa: F401,F403
13+
from .contagion import * # noqa: F401,F403
14+
from .debt_composition import * # noqa: F401,F403
15+
from .macro_financial import * # noqa: F401,F403
16+
from .market_microstructure import * # noqa: F401,F403
17+
from .imf_framework import * # noqa: F401,F403
18+
from .event_studies import * # noqa: F401,F403
19+
from .plots import * # noqa: F401,F403
20+
File renamed without changes.

0 commit comments

Comments
 (0)