-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI/TST: Enable -W error:::pandas in pyproject.toml #51312
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
@@ -632,36 +632,9 @@ def read_sql( | |||
>>> pd.read_sql('test_data', 'postgres:///db_name') # doctest:+SKIP | |||
|
|||
Apply date parsing to columns through the ``parse_dates`` argument | |||
|
|||
>>> pd.read_sql('SELECT int_column, date_column FROM test_data', |
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 removed these examples because they trigger UserWarnings that the format could not be inferred. There is still an example of parse_dates
at the bottom that I think fits the spirit of showing what the keyword does
@@ -395,6 +395,9 @@ doctest_optionflags = [ | |||
"ELLIPSIS", | |||
] | |||
filterwarnings = [ | |||
"error:::pandas", |
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.
what does this one mean?
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 any unhanded warning with any message or warning class originates from the path pandas/*
, treat it as as an error in the test suite.
Any subsequent filter in this list takes prescient over this one if they overlap.
needs a rebase |
Rebased. Added back the |
thx @mroeschke |
…in pyproject.toml) (#51570) Backport PR #51312: CI/TST: Enable -W error:::pandas in pyproject.toml Co-authored-by: Matthew Roeschke <[email protected]>
-W error:::pandas
in pytest during CI runs #48553 (Replace xxxx with the GitHub issue number)doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.