-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
CLN: Reestructure tools and scripts #23658
Comments
What's the reason for this? "ci/" has a pretty clear scope; it isn't clear why we'd want to mix other things with it.
+1 Especially with regard to the CI config and code checks, a ton of effort has gone into these, and any extent to which we can label stuff as "HEY OTHER PROJECTS, GO AHEAD AND COPY/PASTE THIS" may save some other folks headaches. |
ci has a pretty specific connotation so -1 on adding this to everything in combining scripts - if u can do so w/o changing things then ok |
I'm +-0 on renaming the folder, but I'd like to have a single script for validating all the lint check before committing. This is not the same as the commit-hooks talked about in #23616, but I'm copying half a comment from there for completeness:
|
We've got |
@datapythonista is this closed by #23924 or anything since then? |
I would personally refactor and simplify those directories, but there hasn't been consensus, so closing. |
I think it would be good to reestructure a bit our scripts, make sure all them have a header explaining what they do and how to use them, get rid of the ones not in use anymore (if any), and add the inventory of them to the contributing documentation, with what they do.
I'd move all them to
ci/
(or if the name is not good rename it; sklearn usesbuild_tools
, numbabuildscripts
). And inside, I'd have different directories (names can probably be improved):ci/deps/
: conda requirements filesci/setup/
: scripts to create the environment, like downloading conda, building pandas...ci/testing/
: scripts to run the testsci/checks/
: scripts to validate code, likecode_checks.sh
orvalidate_docstrings.py
ci/release/
: scripts used during the releaseci/benchmarks/
: I'd move the asv files insideci
ci/config
: A directory for the yaml files with the CI configurationci/tools/
: scripts likemerge-pr.py
,find_commits_touching_func.py
...It would probably be good to unify scripts, like
script_single.sh
andscript_multi.sh
that share 70% of the code, and have a single script with an argumentrun_tests.sh single
/run_tests.sh multi
.And it could also be useful to have a single script for things like the set up, so we have downloading and running conda in the same script, and it can be called all together, or just a part (like
code_checks.sh
), so we can dosetup_env.sh download
,setup_env.sh create
, or simplysetup_env.sh
to do both.@pandas-dev/pandas-core thoughts?
The text was updated successfully, but these errors were encountered: