-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fix 18121: Add .pxd linting to lint.sh #18150
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
Fix 18121: Add .pxd linting to lint.sh #18150
Conversation
ci/lint.sh
Outdated
@@ -42,6 +42,18 @@ if [ "$LINT" ]; then | |||
done | |||
echo "Linting *.pxi.in DONE" | |||
|
|||
echo "Linting *.pxd" | |||
for path in 'src' |
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.
this should recursively search _libs
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.
i think there may be some fixes needed as well to make this pass (to the actual .pxd files)
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.
@jreback Got it. Is there a way to make lint.sh
run locally?
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.
not really but you can just check the command locally
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.
Is there a way to make lint.sh run locally?
On OSX/Linux:
export LINT=TRUE; /bin/bash ci/lint.sh
The first line of output is an error message you can ignore.
rebase on master |
0eeb816
to
d6a7e5d
Compare
pandas/_libs/src/numpy.pxd
Outdated
#object PyArray_NewFromDescr (type, dtype, int, npy_intp *, npy_intp *, void *, int, object) | ||
object PyArray_New (type, int, npy_intp *, int, npy_intp *, | ||
void *, int, int, object) | ||
#object PyArray_NewFromDescr \ |
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.
you can't use \
here, this is kind of like a c-header file. you can just remove this line as its not used anyhow (its commented out)
Codecov Report
@@ Coverage Diff @@
## master #18150 +/- ##
==========================================
- Coverage 91.4% 91.38% -0.02%
==========================================
Files 163 163
Lines 50073 50068 -5
==========================================
- Hits 45769 45755 -14
- Misses 4304 4313 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #18150 +/- ##
==========================================
- Coverage 91.4% 91.38% -0.02%
==========================================
Files 163 163
Lines 50073 50068 -5
==========================================
- Hits 45769 45755 -14
- Misses 4304 4313 +9
Continue to review full report at Codecov.
|
thanks @manrajgrover |
git diff upstream/master -u -- "*.py" | flake8 --diff