-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
use ensure_clean rather than explicit os.remove #34384 #34385
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
Conversation
Attempting to implement test for resolved issue pandas-dev#21793
Fixing PEP formatting
added comment above test for resolved issue pandas-dev#21793
This reverts commit dce777b.
I have made a start at this issue pandas-dev#34384. Please let me know if I am along the right lines (beginner contributor). I've left a space in code_checks.sh where I expect to implement the check for instances of 'os.remove' throughout the code.
This PR seems to have include all commits from a pull-request of mine which has been merged previously. Not sure why, if anybody thinks they know please let me know. |
It looks like you opened your pull request from With how your branch is now, if you don't want your old commits, I think you'd have to do something like (assuming git fetch upstream master
git rebase -i upstream/master and then drop the commits from your previous pull request. Once that's done, you'd have to do a forced push. |
new_f, keys=keys, propindexes=propindexes, **kwargs | ||
) | ||
tstore = store.copy( | ||
new_f, keys=keys, propindexes=propindexes, **kwargs) |
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.
the previous line too
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.
circle CI tests fail when changing this back, prompting me to correct the linting using 'black'
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.
If I've understood correctly, the issue is that the whole block (lines 4219 - 4221) need moving back an indent, not just the first line
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.
Oh I see thanks. Changed.
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.
small comment, merge master and ping on green-ish
LGTM pending green; @jnecus can you merge master |
can you merge master again; also ideally would have a check for using these in code_checks.sh (but can be a followon is ok too) |
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.
lgtm. would appreciate a followon to add to code_checks.sh as well
thanks @jnecus |
@jreback Happy to do a followon code check, what are you suggesting to check for? Instances of os.remove? If so, this was tried originally (the following quote).
|
yes exactly i think we don't allow os.remove except in the 1 place that we allow it now (so will have to filter the grep a bit) iow we have a set of cases that we allow it (one for now) |
closes #34384
I have made a start at this issue #34384. Please let me know if I am along the right lines (beginner contributor).
I've left a space in code_checks.sh where I expect to implement the check for instances of 'os.remove' throughout the code.