Description
Pandas version checks
- I have checked that the issue still exists on the latest versions of the docs on
main
here
Location of the documentation
https://pandas.pydata.org/docs/development/contributing.html#committing-your-code
Documentation problem
In the "Committing your code" section of the "Contributing to pandas" documentation there are two problems.
1. It is said:
Please reference the relevant GitHub issues in your commit message using GH1234 or #1234.
However, I don't see that this convention is still in use. It seems to be common to reference the respective issue in the PR description, such as "closes #1234".
2. It is further said:
Either style is fine, but the former is generally preferred:
- a subject line with < 80 chars.
- One blank line.
- Optionally, a commit message body.
Now you can commit your changes in your local repository:
git commit -m
The command git commit -m
raises an error that no commit message is given. There are two possibilities here:
- Change the command to
git commit -m "commit message comes here"
, which users can do to have a single line commit message. It is possible to have a multi line commit message this way, but this doesn't seem to be used frequently. - Change the command to
git commit
which opens an editor for the user where they can write a multiline commit message as described above. However, since the project seems to almost always use "squash and merge", I'm not sure how those commit messages are handled.
Suggested fix for documentation
For issue No 1:
Since the convention of including the respective GitHub issue in the commit message doesn't seem to be in use anymore, the documentation for this could be removed.
For issue No 2:
It would be nice to make the documentation of how the commit messages should be written/ structured consistent with the conventions of the core developers.
I'm happy to update the documentation myself after decisions on how to proceed have been made.