-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Revert "STYLE use pandas-dev-flaker (#40906) #50519
Revert "STYLE use pandas-dev-flaker (#40906) #50519
Conversation
This reverts commit 1f27ed0.
2357226
to
a747171
Compare
pytest.xfail("known failure on some windows platforms") | ||
pytest.mark.xfail("known failure on some windows platforms") |
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 pytest.xfail
check in pandas-dev-flaker only checks decorators. My bad here, a simple regex ended up being the better solution here
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 this will make it appear that this test will pass when it hits this line as this mark is not attached to anything.
Probably needs something like
except OverflowError:
if is_platform_windows():
request.node.add_marker(pytest.mark.xfail(reason=...)
raise
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.
right, thanks!
pytest.xfail("known failure on some windows platforms") | ||
request.node.add_marker( | ||
pytest.mark.xfail("known failure on some windows platforms") | ||
) | ||
else: |
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.
Nit: I think this else
should be removed now too so the xfail will be recognized after the raise
…flaker-from-flake8
…rcoGorelli/pandas into rip-out-pandas-dev-flaker-from-flake8
…flaker-from-flake8
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 pending green
thanks - merging to clear the queue then, the only failures are the sqlalchemy ones, which hopefully #50580 will address |
So, #40906 consolidated a bunch of custom checks into a flake8 extension
As it stands, flake8 is the slowest pre-commit hook we have (even without the extension - see timings)
In #50160, Joris tried adding ruff, which would more than an order of magnitude faster (!), and has more checks. Several projects are moving towards it
So, I suggest we revert #40906 , so that we can rip out flake8 and can replace it with
ruff
without losing the custom checksThis is mostly a pure revert of #40906, with some adjustments for things which have since changed
I removed the
import pandas.core.common as com
one, as that one wasnoqa
'd in a few places anyway (if the check isn't a flake8 extension, then it's not so easy to turn off the check, we it's done for a whole file) and doesn't seem too important anywayOverall, I think that this + the ruff PR would be a big improvement to developer workflow. It would mean more hooks (for now, maybe then can be consolidated anyway), but they would run a lot faster. And I'd expect the speed of the checks to matter much more to developer workflow than the speed of them