-
Notifications
You must be signed in to change notification settings - Fork 0
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
Split from xclim #8
base: main
Are you sure you want to change the base?
Conversation
Welcome, new contributor! It appears that this is your first Pull Request. To give credit where it's due, we ask that you add your information to the
Please make sure you've read our contributing guide. We look forward to reviewing your Pull Request shortly ✨ |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@coxipi I believe the new failures are due to the latest |
…into split_from_xclim
fast-forward cookiecutter
@@ -61,6 +61,6 @@ commands_pre = | |||
pip list | |||
pip check | |||
commands = | |||
pytest --cov | |||
pytest xsdba {posargs} |
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 is failing because there is no xsdba
folder in the top-level (it lives in src
). Also, pytest
is looking for tests.
The --cov
argument takes a keyword (xsdba
) to know that the relevant module ton look at is the library. --cov
on its own is an error.
pytest xsdba {posargs} | |
pytest {posargs} |
@@ -42,9 +40,11 @@ commands = | |||
allowlist_externals = | |||
make | |||
|
|||
[pytest] | |||
addopts = --color=yes --cov |
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.
addopts = --color=yes --cov | |
addopts = --color=yes --cov=xsdba |
Pull Request Checklist:
number
) and pull request (:pull:number
) has been added.What kind of change does this PR introduce?
sdba
fromxclim
. Mostly all tests that previously existed are passed in this separate module. Functions and tests that we very climate specific were removed.adjustment.py
Does this PR introduce a breaking change?
N/A
Other information:
Important parts that still need attention:
units.py
copies a lot of stuff and the end ofbase.py
. Is that all right?