-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into opt-dataset
- Loading branch information
Showing
64 changed files
with
163 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ representative at an online or offline event. | |
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported to the community leaders responsible for enforcement at | ||
[email protected]. | ||
[github-[email protected]](mailto:[email protected]). | ||
All complaints will be reviewed and investigated promptly and fairly. | ||
|
||
All community leaders are obligated to respect the privacy and security of the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
`xclim` is in rapid development and receives regular updates every four to six (4-6) weeks. In the event of a security-related bug discovery soon after the release of an `xclim` version, the last supported version will receive a patch release. | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you believe you have found a security vulnerability in `xclim`, we encourage you to let us know right away. We take all security vulnerabilities seriously and appreciate your efforts to responsibly disclose them. | ||
|
||
Please follow these steps to report a security vulnerability: | ||
|
||
1. **Email**: Email [[email protected]](mailto:[email protected]) with a detailed description of the vulnerability. If applicable, please include any steps or a proof-of-concept to help us understand and reproduce the issue. | ||
|
||
2. **Encryption (Optional)**: If you are concerned about the sensitivity of the information you are sharing, you can use the PGP key found below to encrypt your communication. | ||
|
||
3. **Response**: We will acknowledge your email within 48 hours and work with you to understand and confirm the vulnerability. | ||
|
||
4. **Fix and Disclosure**: Once the vulnerability is confirmed, we will work to address it promptly. We appreciate your patience as we investigate and implement a fix. Once resolved, we will coordinate the disclosure and provide credit to the reporter unless they prefer to remain anonymous. | ||
|
||
## PGP Encryption Key | ||
|
||
You can use the following PGP key to encrypt your communications with us: | ||
|
||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
|
||
mDMEZamQrhYJKwYBBAHaRw8BAQdA+saPvmvr1MYe1nQy3n3QDcRE9T7UzTJ1XH31 | ||
EI4Zb6u0Mk91cmFub3MgR2l0SHViIFN1cHBvcnQgPGdpdGh1Yi1zdXBwb3J0QG91 | ||
cmFub3MuY2E+iJkEExYKAEEWIQSeAu+Cbjupx79jy9VeVFD6o5TVcwUCZamQrgIb | ||
AwUJCWYBgAULCQgHAgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRBeVFD6o5TVc4ho | ||
AQDXjDkx0b3A7yl6PQ4hBJ2uYzw0UWbml7mUwVdhMmdZkQD/VJZQNWrCQeOtYEM8 | ||
icZJYwR/OsKFOWqlDytusGGtjwa4OARlqZCuEgorBgEEAZdVAQUBAQdAa41Zabjz | ||
P9O+p6tI69Cnft6U5om3+qCcMo8amTqauH0DAQgHiH4EGBYKACYWIQSeAu+Cbjup | ||
x79jy9VeVFD6o5TVcwUCZamQrgIbDAUJCWYBgAAKCRBeVFD6o5TVcwmaAQClDxW6 | ||
2gir7lhRXAcO+vmRImpGd29TrkcQVh+ak7VlwQEA706d7Kusiorlf/h8pLSoNMmS | ||
kuLGmHpUJ8NVGppU+wo= | ||
=wuxr | ||
-----END PGP PUBLIC KEY BLOCK----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. mdinclude:: ../SECURITY.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,9 @@ dependencies: | |
# Extras | ||
- flox | ||
# Testing and development dependencies | ||
- black >=22.12 | ||
- blackdoc | ||
- bump-my-version | ||
- black ==24.1.0 | ||
- blackdoc ==0.3.9 | ||
# - bump-my-version # The conda package is not as up-to-date as the PyPI package. | ||
- cairosvg | ||
- codespell | ||
- coverage | ||
|
@@ -43,6 +43,7 @@ dependencies: | |
- h5netcdf | ||
- ipykernel | ||
- ipython | ||
- isort ==5.13.2 | ||
- matplotlib | ||
- mypy | ||
- nbqa | ||
|
@@ -65,14 +66,16 @@ dependencies: | |
- sphinx-autodoc-typehints | ||
- sphinx-codeautolink | ||
- sphinx-copybutton | ||
- sphinx-mdinclude | ||
- sphinx-rtd-theme >=1.0 | ||
- sphinxcontrib-bibtex | ||
- tokenize-rt | ||
- tox | ||
- tox >=4.0 | ||
# - tox-conda # Will be added when a [email protected]+ compatible plugin is released. | ||
- xdoctest | ||
- yamllint | ||
- pip | ||
- pip: | ||
- bump-my-version >=0.17.1 # The conda package is not as up-to-date as the PyPI package. | ||
- flake8-alphabetize | ||
- sphinxcontrib-svg2pdfconverter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,16 +59,17 @@ dependencies = [ | |
[project.optional-dependencies] | ||
dev = [ | ||
# Dev tools and testing | ||
"black >=23.3.0", | ||
"blackdoc", | ||
"bump-my-version", | ||
"black ==24.1.0", | ||
"blackdoc ==0.3.9", | ||
"bump-my-version >=0.17.1", | ||
"codespell", | ||
"coverage[toml]", | ||
"flake8", | ||
"flake8-alphabetize", | ||
"flake8-rst-docstrings", | ||
"h5netcdf", | ||
"ipython", | ||
"isort ==5.13.2", | ||
"mypy", | ||
"nbqa", | ||
"nbval", | ||
|
@@ -83,7 +84,7 @@ dev = [ | |
"pytest-xdist[psutil] >=3.2", | ||
"ruff >=0.1.0", | ||
"tokenize-rt", | ||
"tox", | ||
"tox >=4.0", | ||
# "tox-conda", # Will be added when a [email protected]+ compatible plugin is released. | ||
"xdoctest", | ||
"yamllint", | ||
|
@@ -98,6 +99,7 @@ dev = [ | |
"sphinx-autodoc-typehints", | ||
"sphinx-codeautolink", | ||
"sphinx-copybutton", | ||
"sphinx-mdinclude", | ||
"sphinx-rtd-theme >=1.0", | ||
"sphinxcontrib-bibtex", | ||
"sphinxcontrib-svg2pdfconverter[Cairosvg]" | ||
|
@@ -124,7 +126,7 @@ target-version = [ | |
] | ||
|
||
[tool.bumpversion] | ||
current_version = "0.47.5-dev.9" | ||
current_version = "0.47.5-dev.11" | ||
commit = true | ||
commit_args = "--no-verify" | ||
tag = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Tests for generic indices.""" | ||
|
||
from __future__ import annotations | ||
|
||
import numpy as np | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Tests for indicators in `land` realm.""" | ||
|
||
from __future__ import annotations | ||
|
||
import numpy as np | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Tests for statistical indices.""" | ||
|
||
from __future__ import annotations | ||
|
||
import numpy as np | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Climate indices computation package based on Xarray.""" | ||
|
||
from __future__ import annotations | ||
|
||
try: | ||
|
@@ -15,7 +16,7 @@ | |
|
||
__author__ = """Travis Logan""" | ||
__email__ = "[email protected]" | ||
__version__ = "0.47.5-dev.9" | ||
__version__ = "0.47.5-dev.11" | ||
|
||
|
||
_module_data = _files("xclim.data") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Core module.""" | ||
|
||
from __future__ import annotations | ||
|
||
from . import missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.