-
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 'main' of https://github.com/Ouranosinc/xclim into npdf_…
…gpies
- Loading branch information
Showing
151 changed files
with
3,404 additions
and
2,165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Generic issue template | ||
description: For detailing generic/uncategorized issues in Xclim | ||
|
||
body: | ||
- type: textarea | ||
id: generic-issue | ||
attributes: | ||
label: Generic Issue | ||
description: Please fill in the following information fields as needed. | ||
value: | | ||
* xclim version: | ||
* Python version: | ||
* Operating System: | ||
### Description | ||
<!--Describe what you were trying to get done. | ||
Tell us what happened, what went wrong, and what you expected to happen.--> | ||
### What I Did | ||
<!--Paste the command(s) you ran and the output. | ||
If there was a crash, please include the traceback below.--> | ||
``` | ||
$ pip install foo --bar | ||
``` | ||
### What I Received | ||
<!--Paste the output or the stack trace of the problem you experienced here.--> | ||
``` | ||
Traceback (most recent call last): | ||
File "/path/to/file/script.py", line 3326, in run_code | ||
exec(code_obj, self.user_global_ns, self.user_ns) | ||
File "<ipython-input-2-9e1622b385b6>", line 1, in <module> | ||
1/0 | ||
ZeroDivisionError: division by zero | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Ouranosinc/xclim/blob/main/CODE_OF_CONDUCT.md) | ||
options: | ||
- label: I agree to follow this project's Code of Conduct | ||
required: true |
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,52 @@ | ||
name: Bug report | ||
description: Help us improve Xclim | ||
labels: [ "bug" ] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: setup-information | ||
attributes: | ||
label: Setup Information | ||
description: | | ||
What software versions are you running? Example: | ||
- Xclim version: 0.55.0-gamma | ||
- Python version: 4.2 | ||
- Operating System: Nutmeg Linux 12.34 | macOS 11.0 "Redmond" | ||
value: | | ||
- Xclim version: | ||
- Python version: | ||
- Operating System: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen. | ||
- type: textarea | ||
id: steps-to-reproduce | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Paste the command(s) you ran and the output. If there was a crash, please include the traceback below. | ||
- type: textarea | ||
id: additional-context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. | ||
- type: checkboxes | ||
id: submit-pr | ||
attributes: | ||
label: Contribution | ||
description: Do you intend to submit a fix for this bug? (The xclim developers will help with code compliance) | ||
options: | ||
- label: I would be willing/able to open a Pull Request to address this bug. | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Ouranosinc/xclim/blob/main/CODE_OF_CONDUCT.md) | ||
options: | ||
- label: I agree to follow this project's Code of Conduct | ||
required: true |
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,39 @@ | ||
name: Feature request | ||
description: Suggest an idea for this project | ||
labels: [ "enhancement" ] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this feature request! | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Addressing a Problem? | ||
description: Is your feature request related to a problem? Please describe it. | ||
- type: textarea | ||
id: potential-solution | ||
attributes: | ||
label: Potential Solution | ||
description: Describe the solution you'd like to see implemented. | ||
- type: textarea | ||
id: additional-context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the feature request here. | ||
- type: checkboxes | ||
id: submit-pr | ||
attributes: | ||
label: Contribution | ||
description: Do you intend to submit a fix for this bug? (The xclim developers will help with code compliance) | ||
options: | ||
- label: I would be willing/able to open a Pull Request to contribute this feature. | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Ouranosinc/xclim/blob/main/CODE_OF_CONDUCT.md) | ||
options: | ||
- label: I agree to follow this project's Code of Conduct | ||
required: true |
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 |
---|---|---|
|
@@ -27,13 +27,13 @@ jobs: | |
github.com:443 | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
token: ${{ secrets.ACTIONS_VERSION_UPDATER_TOKEN }} | ||
persist-credentials: true | ||
|
||
- name: Run GitHub Actions Version Updater | ||
uses: saadmk11/[email protected] | ||
uses: saadmk11/github-actions-version-updater@64be81ba69383f81f2be476703ea6570c4c8686e # v0.8.1 | ||
with: | ||
token: ${{ secrets.ACTIONS_VERSION_UPDATER_TOKEN }} | ||
committer_email: 'bumpversion[bot]@ouranos.ca' | ||
|
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,15 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
time: '12:00' | ||
open-pull-requests-limit: 5 | ||
|
||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: daily | ||
time: '12:00' | ||
open-pull-requests-limit: 5 |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Bump Patch Version | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
paths-ignore: | ||
- .* | ||
- .github/*/*.md | ||
|
@@ -23,7 +23,7 @@ on: | |
- tox.ini | ||
- xclim/__init__.py | ||
|
||
permissions: # added using https://github.com/step-security/secure-repo | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
@@ -35,18 +35,18 @@ jobs: | |
contents: write | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
allowed-endpoints: > | ||
files.pythonhosted.org:443 | ||
github.com:443 | ||
pypi.org:443 | ||
- uses: actions/[email protected].1 | ||
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-python@v5.0.0 | ||
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.x" | ||
- name: Config Commit Bot | ||
|
@@ -75,7 +75,7 @@ jobs: | |
echo "new_version=${NEW_VERSION}" | ||
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV | ||
- name: Push Changes | ||
uses: ad-m/github-push-action@v0.8.0 | ||
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df | ||
with: | ||
force: false | ||
github_token: ${{ secrets.BUMP_VERSION_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -5,15 +5,15 @@ on: | |
types: | ||
- closed | ||
|
||
permissions: # added using https://github.com/step-security/secure-repo | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
|
@@ -23,7 +23,7 @@ jobs: | |
objects.githubusercontent.com:443 | ||
- name: Check out code | ||
uses: actions/[email protected].1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
|
||
- name: Cleanup | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: CodeQL Scan | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
paths-ignore: | ||
- CHANGES.rst | ||
- Makefile | ||
|
@@ -37,7 +37,7 @@ jobs: | |
- 'python' | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
|
@@ -49,13 +49,13 @@ jobs: | |
pypi.org:443 | ||
uploads.github.com:443 | ||
- name: Checkout repository | ||
uses: actions/[email protected].1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@codeql-bundle-20230524 | ||
uses: github/codeql-action/init@1245696032ecf7d39f87d54daa406e22ddf769a8 | ||
with: | ||
languages: ${{ matrix.language }} | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@codeql-bundle-20230524 | ||
uses: github/codeql-action/autobuild@1245696032ecf7d39f87d54daa406e22ddf769a8 | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@codeql-bundle-20230524 | ||
uses: github/codeql-action/analyze@1245696032ecf7d39f87d54daa406e22ddf769a8 |
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 |
---|---|---|
|
@@ -16,16 +16,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
allowed-endpoints: > | ||
api.deps.dev:443 | ||
api.github.com:443 | ||
github.com:443 | ||
- name: 'Checkout Repository' | ||
uses: actions/[email protected].1 | ||
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | ||
|
||
- name: 'Dependency Review' | ||
uses: actions/dependency-review-action@v3.1.4 | ||
uses: actions/dependency-review-action@5bbc3ba658137598168acb2ab73b21c432dd411b |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
types: | ||
- opened | ||
|
||
permissions: # added using https://github.com/step-security/secure-repo | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
@@ -17,14 +17,14 @@ jobs: | |
pull-requests: write | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
allowed-endpoints: > | ||
api.github.com:443 | ||
- uses: actions/[email protected] | ||
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||
with: | ||
script: | | ||
// Get a list of all issues created by the PR opener | ||
|
Oops, something went wrong.