-
Notifications
You must be signed in to change notification settings - Fork 48
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
Stricter testing #331
Stricter testing #331
Conversation
- When testing with the old Python version (3.9 at the moment), the oldest supported versions of the dependencies are installed. - The option `-W error` is added to pytest, so that it fails in case of a warning.
Reviewer's Guide by SourceryThis pull request introduces stricter testing measures by ensuring that the oldest supported versions of dependencies are installed when testing with Python 3.9. Additionally, it adds the File-Level Changes
Tips
|
Here's the code health analysis summary for commits Analysis Summary
|
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.
Hey @tovrstra - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
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.
Is there any way to support earlier versions of Python?
We have a major annoyance right now because HORTON 2.3 supports only up to Python 3.9. This makes it impossible to use "new HORTON" features in the same environment as HORTON 2.x, and there is stil a lot of old workflows that use facets of HORTON 2.x that haven't been migrated yet.
So I guess the two questions are, and I guess @tovrstra and @matt-chan are the people to answer them:
- Is it better to keep HORTON 3.x things compatible down to Python 3.9
- Is it better to upgrade HORTON 2.x to support Python past 3.9
One of these two things needs to be done, IMHO.
I think it wouldn't be that hard to bump 2.x compatibility past 3.9. The
main blocker is getting the newer versions of the dependencies.
…On Mon, 10 Jun 2024 at 10:48, Paul W. Ayers ***@***.***> wrote:
***@***.**** commented on this pull request.
Is there any way to support earlier versions of Python?
We have a *major* annoyance right now because HORTON 2.3 supports only up
to Python 3.9
<https://github.com/theochem/horton/blob/764dd2fa958aee0dcee30b19ed0520d65d83b45a/conda/conda_build_config.yaml#L3>.
This makes it impossible to use "new HORTON" features in the same
environment as HORTON 2.x, and there is stil a lot of old workflows that
use facets of HORTON 2.x that haven't been migrated yet.
So I guess the two questions are, and I guess @tovrstra
<https://github.com/tovrstra> and @matt-chan
<https://github.com/matt-chan> are the people to answer them:
1. Is it better to keep HORTON 3.x things compatible down to Python 3.9
2. Is it better to upgrade HORTON 2.x to support Python past 3.9
One of these two things needs to be done, IMHO.
—
Reply to this email directly, view it on GitHub
<#331 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH74NLACIQQZ3PKMLLSWKTZGXRGVAVCNFSM6AAAAABI7Z32EKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCMBYGQZDENBXGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Matt
|
Can you take the lead on making this update to HORTON 2.3 then (preferably sooner rather than later)? I'll then approve this as the point will be moot by the time it's relevant. |
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.
@matt-chan reassured me that we can bump HORTON 2.3 to Python 3.11 or later in short order, so it should be fine.
Sounds good. Thanks for reviewing and checking all this. IOData works for Python 3.9 now and we can easily keep it that way while it is officially supported, i.e. until October 2025. (See https://devguide.python.org/versions/) The reason I did not consider supporting 3.8 is that it goes end of life soon, i.e. October 2024. Note that Python 3.9 is also the oldest version that supports type hinting with built-in types (PEP 585) without |
-W error
is added to pytest, so that it fails in case of a warning.This is part of the changes listed in #313. The first bullet was brought up in #325.
I will YOLO-merge this on Friday, June 14 unless reviewed earlier.
Summary by Sourcery
This pull request enhances the CI workflow by ensuring that the oldest supported versions of dependencies are installed when testing with Python 3.9. Additionally, it configures pytest to treat warnings as errors, improving the strictness of the tests.
-W error
option in pytest to treat warnings as errors.