-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
STYLE: moving spacing conventions in cython casting to pre-commit #42186
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
01-vyom
commented
Jun 22, 2021
- closes STYLE move spacing conventions in cython casting to pre-commit #42121
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. |
Working |
are you sure? looks like there's still lot's of failures https://github.com/pandas-dev/pandas/pull/42186/checks?check_run_id=3164816180 |
Sorry for the late reply, I think it's because the check is working on .rst files as well according to the include statement in the .yaml file: pandas/.pre-commit-config.yaml Lines 96 to 108 in 2f49b8d
What should we do? separate this check with another id for only cython files? |
Ah yes, you're right. Then yes, just make another hook and only run it on |
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.
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.
sorry, forgot this last time, we should also remove 'lint' from this file (there's a few places where it crops up)
Line 13 in 4f0e2e9
# $ ./ci/code_checks.sh lint # run linting only |
Made the changes, should be good to go |
oops, CI checks are failing, there's still pandas/.github/workflows/ci.yml Lines 51 to 53 in 4f0e2e9
(after that, should be good to go!) |
Need to make changes in docs as well. |
There are also docs for pattern matching, but it has been moved so should I change it as well? Doc2: Lines 5 to 9 in 4f0e2e9
|
Thanks for spotting that - yeah, sure! |
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.
…ndas-dev#42186) * STYLE: moving spacing conventions in cython casting to pre-commit * BUG: Fix pre-commit hook for cython casting check * ENH: Add new hook for cython casting * ENH: Changed hook for cython casting * Update .pre-commit-config.yaml * Update code_checks.sh * ENH: Removed lint comments from code checks * DOC: Changed documentation for code check * mention imports and typing in doc Co-authored-by: Marco Edward Gorelli <[email protected]>