-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Tox as main entry point for development #23356
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
Comments
@FHaase regarding the error you get: you need to (re)build the pandas C extensions ( |
Regarding the actual proposal about If we want to make certain things easier, I would rather add some commands like |
The respective code at least looks fine to me:
|
That's a bug with IPython 7.0. It's fixed on IPython master. |
FWIW I find tox useful for projects with short-running test suites and no formal CI. Is the existing tox.ini file usable/useful in its current state? Only real opinion here is that it should be either maintained or removed. |
Well it took me quite some time to get the project running. I looked in the contribution-guide and although I thought I followed everything in the guide, however I missed something, had wrong dependencies (IPython) so tests, building the documentation etc. did not run smoothly. Right now I found:
The question for me is: Which of these scripts are actually usefull to run before creating a PR? Ideally there was a file written in python (easy to understand for devs only knowing python) which defines various tasks [build_doc, build_extension, test_all, test_fast, check] taking care of all steps that are required to predict a running/failing ci-build before actually commiting/opening a PR. If there wasn't the incompatibility with conda tox would be a great possibility.
I don't think the file is usefull anymore as it didn't change since more than a year and it creates a folder |
It looks like tox has recently (as in since the last time I looked at the docs) started looking for config in setup.cfg, so if we do choose to keep it, we can still lose the file. |
We should maybe already start with a better summary checklist in the contributing guidelines of which things to check when submitting a PR / updating a PR. |
Closing since we no longer have a tox.ini at all and docstring validation has moved forward elsewhere. |
So I have been working on issue #23154 trying to setup flake8-rst as additional check for code within documentation.
It's working great, finding multiple places to fix, however in order to test I'm not able to run the appropriate commands.
./ci/requirements_dev.txt
and./ci/requirements-optional-conda.txt
python make.py html
within./doc
folderResulting in
So I can't really evaluate weather the changes I am going to make are correct.
Trying to build pandas or running the test suite never worked for me as well. Maybe it's just my own error, but I think there are others getting these issues.
As the project is already featuring
tox
I'm proposing to enhance tox with all these use-cases so that after a fresh clone of the project someone can just typetox -e docs
and tox creates a venv with all required dependencies and runs the build,tox -e check
to run flake8, isort, validate_docstrings.py ...tox
for a complete check of everything -> reducing failing ci-buildsIn my opinion this could simplify someones first steps to contribute to pandas. What do you think?
The text was updated successfully, but these errors were encountered: