Skip to content

migrate tests from nbs to pytest - #1029

Merged
Deven Mistry (deven367) merged 43 commits into
mainfrom
rm-nbdev
Aug 12, 2025
Merged

Deven Mistry (deven367) merged 43 commits into
mainfrom
rm-nbdev

Conversation

@deven367

Copy link
Copy Markdown
Collaborator

This PR is a WIP to remove nbdev and fastcore from the library

cc Mariana Menchero García (@MMenchero) Han Wang (@goodwanghan)

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@CLAassistant

CLAassistant commented Jul 9, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@deven367
Deven Mistry (deven367) marked this pull request as draft July 9, 2025 21:33
@codspeed

codspeed Bot commented Jul 9, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #1029 will not alter performance

Comparing rm-nbdev (b686d91) with main (3a387d3)

Summary

✅ 6 untouched benchmarks

@deven367
Deven Mistry (deven367) marked this pull request as ready for review July 23, 2025 17:47
@JQGoh

Copy link
Copy Markdown
Contributor

I noticed that the pytest failures mainly have E AttributeError: module 'pyarrow' has no attribute 'PyExtensionType'

Perhaps we can skip the tests in tests/test_distributed_fugue.py for now and make sure that all the other test cases pass successfully, and resolve this later?

Comment thread tests/test_distributed_fugue.py Outdated
Comment thread tests/test_arima.py Outdated
Comment thread tests/test_arima.py Outdated
Comment thread tests/test_arima.py Outdated
Comment thread tests/test_ces.py Outdated
Comment thread tests/test_theta.py Outdated
Comment thread tests/test_tbats.py Outdated

@JQGoh Jing Qiang Goh (JQGoh) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think after this PR have improvements like omitting the unused/commented codes and better use of common fixtures to avoid code duplications, we can move forward to the next PR (removal of nbdev notebooks).

Mariana Menchero García (@MMenchero) It is best to have your reviews for this work too.

@MMenchero

Mariana Menchero García (MMenchero) commented Jul 29, 2025

Copy link
Copy Markdown
Contributor

Hi Deven Mistry (@deven367) . This is a great first iteration of what we want to accomplish: not only removing nbdev, but also improving StatsForecast’s structure. I’m glad we now have a dedicated tests folder.

One suggestion: in the GARCH tests, it’d be good to add the comparison with the arch library. Just like several functions have an equivalent in R, the GARCH and ARCH models were developed to be equivalents to the arch library, but now under the StatsForecast framework. Here are the original tests.

Thanks Jing Qiang Goh (@JQGoh) for your review and suggestions as well.

@deven367

Copy link
Copy Markdown
Collaborator Author

Mariana Menchero García (@MMenchero) the changes you had requested are done in 623179d

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deven367 Deven Mistry (deven367) changed the title remove nbdev migrate tests from nbs to pytest Aug 4, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deven367
Deven Mistry (deven367) merged commit 20f4cc7 into main Aug 12, 2025
47 checks passed
@deven367
Deven Mistry (deven367) deleted the rm-nbdev branch August 12, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants