Skip to content

Revert "[Doctests] Refactor doctests + add CI"#23245

Merged
sgugger merged 1 commit into
mainfrom
revert-22987-doct-tests
May 9, 2023
Merged

Revert "[Doctests] Refactor doctests + add CI"#23245
sgugger merged 1 commit into
mainfrom
revert-22987-doct-tests

Conversation

@sgugger

@sgugger sgugger commented May 9, 2023

Copy link
Copy Markdown
Collaborator

Reverts #22987

This PR created a hard dependency on pytest which we don't want in Transformers. Looking a bit more it would be better if the whole doctest_utils.py module lived outside of the Transformers library, so it should be structured differently.

@sgugger
sgugger requested a review from ydshieh May 9, 2023 19:24

@ydshieh ydshieh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for rescue the 🔥 .

@sgugger
sgugger merged commit 69ee462 into main May 9, 2023
@sgugger
sgugger deleted the revert-22987-doct-tests branch May 9, 2023 19:26
sgugger added a commit that referenced this pull request May 9, 2023
Revert "[Doctests] Refactor doctests + add CI (#22987)"

This reverts commit 627f447.
@ydshieh ydshieh mentioned this pull request May 9, 2023
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

ydshieh added a commit that referenced this pull request May 10, 2023
ydshieh added a commit that referenced this pull request May 10, 2023
* Revert "Revert "[Doctests] Refactor doctests + add CI" (#23245)"

This reverts commit 69ee462.

* try not expose HfDocTestParser

* move into testing_utils.py

* remove pytest install

---------

Co-authored-by: ydshieh <[email protected]>
gojiteji pushed a commit to gojiteji/transformers that referenced this pull request Jun 5, 2023
Revert "[Doctests] Refactor doctests + add CI (huggingface#22987)"

This reverts commit 627f447.
gojiteji pushed a commit to gojiteji/transformers that referenced this pull request Jun 5, 2023
…#23271)

* Revert "Revert "[Doctests] Refactor doctests + add CI" (huggingface#23245)"

This reverts commit 69ee462.

* try not expose HfDocTestParser

* move into testing_utils.py

* remove pytest install

---------

Co-authored-by: ydshieh <[email protected]>
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
Revert "[Doctests] Refactor doctests + add CI (huggingface#22987)"

This reverts commit 627f447.
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
…#23271)

* Revert "Revert "[Doctests] Refactor doctests + add CI" (huggingface#23245)"

This reverts commit 69ee462.

* try not expose HfDocTestParser

* move into testing_utils.py

* remove pytest install

---------

Co-authored-by: ydshieh <[email protected]>
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.

3 participants