-
-
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
STYLE use pandas-dev-flaker #40906
STYLE use pandas-dev-flaker #40906
Conversation
c274ffb
to
c7de7fb
Compare
i dont know the code for these checks very well; is there any need for concern about the Marco bus factor? |
That's definitely a valid concern. What I'd like to first understand is whether you'd find this change useful - if so, then I can do my best to address concerns. Just to clarify the bus factor question - is the concern more the repo being in my name, or about how most maintainers might not have ast-parsing at the top of their interest list and so this'd be hard to maintain going forward? |
generally looks good. I think including it as a pandas-dev repo is totally fine |
Thanks @jreback - I've transferred it to For authors / license, am I OK to put "PyData Development Team" (as in the pandas license)? |
sure that sounds good. I would add https://github.com/pandas-dev/pandas/tree/master/LICENSES as well |
I've fixed up the author, and the pandas license is there (https://github.com/pandas-dev/pandas-dev-flaker/blob/main/LICENSES/PANDAS_LICENSE) Any further thoughts? If this is still seen as potentially controversial, maybe it can be discussed at the dev meeting tomorrow? |
The second one. I'm not losing sleep over it. |
lgtm. |
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.
Love this - great work @MarcoGorelli
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.
Really nice clean up, thanks @MarcoGorelli
Just a minor personal opinion on the pandas-dev-flaker
, this PR looks good.
Instead of using from pandas_dev_flaker.__main__ import run
, I'd personally define run
in __init__.py
, and import it from __main__.py
, and from the tests or anywhere else needed with from pandas_dev_flaker import run
.
Personally I think __main__.py
should be exclusively for when calling python -m module
, and nothing should be imported from it. I think that's the original purpose, and keep things better organized.
In any case, just a small suggestion, changes look great.
Thanks for your feedback, really appreciate it! Thanks @datapythonista for the tip - I'll move definitions to |
very nice @MarcoGorelli |
This reverts commit 1f27ed0.
* Revert "STYLE use pandas-dev-flaker (#40906)" This reverts commit 1f27ed0. * fixups * fixup? * make _compressors public * use typing.Callable * reduce diff * further reduce * one more * fixup regex * fixup regex * add xfail to request * remove else after xfail mark * make copy_on_write public Co-authored-by: MarcoGorelli <>
This means that, just by running
flake8
, you'll be able to get all these custom linting errors alongside the regularflake8
ones. E.g. if we makepandas/tests/t.py
as follows:then we get:
These can then easily be configured using
flake8
's configuration options, like# noqa
andper-file-ignores
insetup.cfg
.This also brings down the number of pre-commit checks.
I this is something the team wants, and it's decided to keep it as a separate repo, then some outstanding things to do would be:
pandas-dev