-
Notifications
You must be signed in to change notification settings - Fork 876
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
docs: update compatibility guidance #2086
Conversation
I don't think the writeup is necessarily true. I don't want to give up calendar version just because we are temporarily doing semantic versioning due to the switch over to a namespace package. In future, it will still be calendar versioned. I think a more important statement is that if you happen to just use pymatgen for its core classes, it really doesn't matter in most instances whether you are using v2018, 2019 or 2021 or 2022. None of the core classes have undergone any backwards incompatible changes in the past few years. Those who work on the bleeding age of pymatgen will of course have to live with the nature of a research code, i.e., it is always changing! |
Oh, I see. Sorry, I had understood you were going to follow the principle of incrementing the major version number upon breaking changes not just until 2022 but also going forward. Feel free to disregard this PR then.
Since you mention this, I went back through the aiida-core issue tracker looking for pymatgen-related issues from the last two years aiidateam/aiida-core#3244 On closer inspection, you are right that most of these are not related to breaking changes. Most were caused by issues with the All in all, I still think that for a tool like aiida it would still be useful if pymatgen was using semantic versioning... |
Adding the |
@ltalirz Thanks. I will merge this and update the doc to reflect what Matt suggested. |
@ltalirz I have clarified the compatibility doc based on your suggested edits. Thanks. |
Summary
Drafting an update of the Compatibility guide as requested by @mkhorton in
#2083 (comment)
Checklist
Work-in-progress pull requests are encouraged, but please put [WIP]
in the pull request title.
Before a pull request can be merged, the following items must be checked:
is to run the following in the correct sequence on your local machine. Start with running
black on your new code. This will automatically reformat
your code to PEP8 conventions and removes most issues. Then run
pycodestyle, followed by
flake8.
Run pydocstyle on your code.
Note that the CI system will run all the above checks. But it will be much more efficient if you already fix most
errors prior to submitting the PR. It is highly recommended that you use the pre-commit hook provided in the pymatgen
repository. Simply
cp pre-commit .git/hooks
and a check will be run prior to allowing commits.