Skip to content

CI: pre-commit fixups #40468

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 1 commit into from
Mar 16, 2021
Merged

CI: pre-commit fixups #40468

merged 1 commit into from
Mar 16, 2021

Conversation

jbrockmendel
Copy link
Member

Fixes 2/3 of the failures on master that im aware of. sqlalchemy is the one left out.

@jreback
Copy link
Contributor

jreback commented Mar 16, 2021

need to backport these?

@jreback jreback added the CI Continuous Integration label Mar 16, 2021
@jreback jreback added this to the 1.2.4 milestone Mar 16, 2021
@jbrockmendel
Copy link
Member Author

need to backport these?

i think these both got introduced in the last day or so

@jbrockmendel
Copy link
Member Author

any experience with sqlalchemy? ive got a branch that is most of the way there, but their deprecation message

The Connection.run_callable() method is deprecated and will be removed in a future release.  Use a context manager instead. (deprecated since: 1.4)

isnt very helpful in terms of telling me what context manager to use

@@ -1372,9 +1372,9 @@ def array_likes(request):
data = memoryview(arr)
elif name == "array":
# stdlib array
from array import array
from array import array as array_stdlib
Copy link
Member

Choose a reason for hiding this comment

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

@MarcoGorelli I wonder is there a way to make the pre-commit check not trigger in cases like this (seems like this might be a false positive)?

Copy link
Member

Choose a reason for hiding this comment

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

yes...we can probably check that, if has been imported from pandas and there is pd., then trigger, but don't if it was imported from somewhere else

I do think I prefer aliasing array here if it's not from pandas, but I'll look into this nonetheless, thanks for bringing it up

Copy link
Member

Choose a reason for hiding this comment

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

Personally I would say we should do import array / array.array(...). That should be clear?

@jreback jreback modified the milestones: 1.2.4, 1.3 Mar 16, 2021
@jbrockmendel
Copy link
Member Author

good to go here? after this, #40471 should get us to green

@jreback jreback merged commit d83d715 into pandas-dev:master Mar 16, 2021
@jreback
Copy link
Contributor

jreback commented Mar 16, 2021

@MarcoGorelli ok for a followup if you want to check / rename the import

@jbrockmendel jbrockmendel deleted the ci-many branch March 16, 2021 20:33
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants