-
Notifications
You must be signed in to change notification settings - Fork 31.8k
[testing utils] get_auto_remove_tmp_dir more intuitive behavior #8401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f5e3053
[testing utils] get_auto_remove_tmp_dir default change
stas00 32a6019
simplify things
stas00 e0c5d20
update docs
stas00 a4fa5ef
fix doc layout
stas00 b18eea5
style
stas00 2cfc9be
Update src/transformers/testing_utils.py
stas00 df2f3ae
better 3-state doc
stas00 d582572
style
stas00 893d6df
Apply suggestions from code review
stas00 ede20cd
s/tmp/temporary/ + style
stas00 d13bbbb
correct the statement
stas00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sgugger, any purpose for why does
utils/style_doc.pychange the docstring is this strange way - I meant no new lines there - why do we need them?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also should it perhaps say which file(s) should be restyled when it fails?
Perhaps it doesn't matter, since it's automatic anyway... just a thought.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lists should always being with a new line before otherwise sphinx (sometimes) throws warnings. That's why the script wants to add them.
As for the warnings, I copied what black does (and it does not say which file should be restyled) :-)