-
Notifications
You must be signed in to change notification settings - Fork 871
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
Replace HTTP URLs with HTTPS, avoid from pytest import raises/mark
#4021
Conversation
@@ -56,7 +56,7 @@ def lattice_from_abivars(cls=None, *args, **kwargs): | |||
raise ValueError(f"The sum of angdeg must be lower than 360, {ang_deg=}") | |||
|
|||
# This code follows the implementation in ingeo.F90 | |||
# See also http://www.abinit.org/doc/helpfiles/for-v7.8/input_variables/varbas.html#angdeg |
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.
I have to replace this with the latest doc (doesn't seem to be versioned) instead of the original v7.8, because the original URL seems inaccessible.
@janosh Please review this. Looks like we might need to regenerate docs, thanks! I reverted the rebuild doc commit because it makes it impossible to review. Would let you do this, appreciate that! |
Currently on my phone. Could you apply the docs commit again? |
src/pymatgen/alchemy/materials.py
Outdated
@@ -369,7 +369,7 @@ def to_snl(self, authors: list[str], **kwargs) -> StructureNL: | |||
history += [ | |||
{ | |||
"name": snl_metadata.pop("name", "pymatgen"), | |||
"url": snl_metadata.pop("url", "http://pypi.python.org/pypi/pymatgen"), | |||
"url": snl_metadata.pop("url", "https://pypi.python.org/pypi/pymatgen"), |
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.
This might potentially be a breaking change too (already reverted), the metadata (default value of pop
for url
would have been changed):
pymatgen/src/pymatgen/alchemy/materials.py
Lines 367 to 375 in 46d843c
for hist in self.history: | |
snl_metadata = hist.pop("_snl", {}) | |
history += [ | |
{ | |
"name": snl_metadata.pop("name", "pymatgen"), | |
"url": snl_metadata.pop("url", "http://pypi.python.org/pypi/pymatgen"), | |
"description": hist, | |
} | |
] |
from pytest import raises/mark
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.
ideally, we should have a link checker CI similar to pymativz to make sure all the new (and old links) are actually still alive. but i'm happy to leave that to a future PR. maybe something to open an issue for so it's not forgotton
Wonderful. Added to my TODO list (which is not very long at this moment :) ). I would need some investigation on that because markdown-link-check seemingly just check markdown files. Can you regenerate documents after reviewing? Thanks! |
@DanielYang59 do you want to reapply the docs update commit before i merge? |
@janosh certainly, got two warnings at the start, not sure if we should worry about that or not (it seems
|
safe to ignore for now. the docs need some more work at some point but that would be a bigger project |
Great to know! Thanks. |
Summary
from pytest import raises/mark
(a bit unsure aboutMonkeyPatch
so just usepytest.MonkeyPatch
ifpytest
is already imported)