-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit aa2f2ec
Showing
56 changed files
with
3,457 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"template": "https://github.com/Ouranosinc/cookiecutter-pypackage", | ||
"commit": "260a1d5947fb55d250b258697c336ca1d23d24ed", | ||
"checkout": null, | ||
"context": { | ||
"cookiecutter": { | ||
"full_name": "Trevor James Smith", | ||
"email": "[email protected]", | ||
"github_username": "Ouranosinc", | ||
"project_name": "xsdba", | ||
"project_slug": "xsdba", | ||
"project_short_description": "Statistical correction and bias adjustment tools for xarray.", | ||
"pypi_username": "Zeitsperre", | ||
"version": "0.1.0", | ||
"use_pytest": "y", | ||
"use_black": "y", | ||
"use_conda": "y", | ||
"add_pyup_badge": "n", | ||
"make_docs": "y", | ||
"add_translations": "y", | ||
"command_line_interface": "Typer", | ||
"create_author_file": "y", | ||
"open_source_license": "Apache Software License 2.0", | ||
"generated_with_cruft": "y", | ||
"__gh_slug": "https://github.com/Ouranosinc/xsdba", | ||
"_template": "https://github.com/Ouranosinc/cookiecutter-pypackage" | ||
} | ||
}, | ||
"directory": null | ||
} |
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,24 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
charset = utf-8 | ||
end_of_line = lf | ||
|
||
[*.{yaml,yml}] | ||
indent_size = 2 | ||
|
||
[*.bat] | ||
indent_style = tab | ||
end_of_line = crlf | ||
|
||
[LICENSE] | ||
insert_final_newline = false | ||
|
||
[Makefile] | ||
indent_style = tab |
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,27 @@ | ||
[flake8] | ||
exclude = | ||
.eggs, | ||
.git, | ||
build, | ||
docs, | ||
tests | ||
ignore = | ||
C, | ||
D, | ||
E, | ||
F, | ||
W503 | ||
per-file-ignores = | ||
rst-roles = | ||
doc, | ||
mod, | ||
py:attr, | ||
py:attribute, | ||
py:class, | ||
py:const, | ||
py:data, | ||
py:func, | ||
py:meth, | ||
py:mod, | ||
py:obj, | ||
py:ref |
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 @@ | ||
* xsdba 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 here. | ||
``` |
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,34 @@ | ||
name: Generic issue template | ||
description: For detailing generic/uncategorized issues in xsdba | ||
|
||
body: | ||
- type: textarea | ||
id: generic-issue | ||
attributes: | ||
label: Generic Issue | ||
description: Please fill in the following information fields as needed. | ||
value: | | ||
* xsdba 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 |
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,44 @@ | ||
name: Bug report | ||
description: Help us improve xsdba | ||
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: | ||
- xsdba version: 0.55.0-gamma | ||
- Python version: 4.2 | ||
- Operating System: Nutmeg Linux 12.34 | macOS 11.0 "Redmond" | ||
value: | | ||
- xsdba 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 xsdba developers will help with code compliance) | ||
options: | ||
- label: I would be willing/able to open a Pull Request to address this bug. |
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,31 @@ | ||
name: Feature request | ||
description: Suggest an idea for xsdba | ||
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 xsdba developers will help with code compliance) | ||
options: | ||
- label: I would be willing/able to open a Pull Request to contribute this feature. |
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,23 @@ | ||
name: Question/Support | ||
description: Ask for help from the developers | ||
labels: [ "support" ] | ||
|
||
body: | ||
- type: textarea | ||
id: setup-information | ||
attributes: | ||
label: Setup Information | ||
description: | | ||
What software versions are you running? Example: | ||
- xsdba version: 0.55.0-gamma | ||
- Python version: 4.2 | ||
- Operating System: Nutmeg Linux 12.34 | macOS 11.0 "Redmond" | ||
value: | | ||
- xsdba version: | ||
- Python version: | ||
- Operating System: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Context | ||
description: Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen. |
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 @@ | ||
blank_issues_enabled: 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,18 @@ | ||
<!-- Please ensure the PR fulfills the following requirements! --> | ||
<!-- If this is your first PR, make sure to add your details to the AUTHORS.rst! --> | ||
### Pull Request Checklist: | ||
- [ ] This PR addresses an already opened issue (for bug fixes / features) | ||
- This PR fixes #xyz | ||
- [ ] (If applicable) Documentation has been added / updated (for bug fixes / features). | ||
- [ ] (If applicable) Tests have been added. | ||
- [ ] CHANGELOG.rst has been updated (with summary of main changes). | ||
- [ ] Link to issue (:issue:`number`) and pull request (:pull:`number`) has been added. | ||
|
||
### What kind of change does this PR introduce? | ||
|
||
* ... | ||
|
||
### Does this PR introduce a breaking change? | ||
|
||
|
||
### Other information: |
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,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: /.github/workflows/ | ||
schedule: | ||
interval: monthly | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
open-pull-requests-limit: 10 |
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,20 @@ | ||
# label rules used by .github/workflows/label.yml | ||
|
||
# label 'ci' all automation-related steps and files | ||
# Since this repository is in itself an automation process to deploy a server instance, | ||
# we refer here to CI as the 'meta' configuration files for managing the code and integrations with the repository, | ||
# not configurations related to the deployment process itself. | ||
|
||
# Uncomment the following lines to enable the labeler (requires labels with the same name to exist in the repository) | ||
|
||
# label 'ci' all automation-related steps and files | ||
#'CI': | ||
# - changed-files: | ||
# - any-glob-to-any-file: | ||
# - '.editorconfig' | ||
# - '.flake8' | ||
# - '.pre-commit-config.yaml' | ||
# - '.yamllint.yml' | ||
# - '.github/workflows/*' | ||
# - 'tox.ini' | ||
# - 'Makefile' |
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,89 @@ | ||
# This workflow requires a personal access token named `BUMP_VERSION_TOKEN` with the following privileges: | ||
# - Contents: Read and Write | ||
# - Metadata: Read-Only | ||
# - Pull Requests: Read and Write | ||
|
||
name: "Bump Patch Version" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- .cruft.json | ||
- .editorconfig | ||
- .github/**.yml | ||
- .gitignore | ||
- .pre-commit-config.yaml | ||
- .yamllint.yaml | ||
- .zenodo.json | ||
- AUTHORS.rst | ||
- CHANGELOG.rst | ||
- CONTRIBUTING.rst | ||
- Makefile | ||
- .readthedocs.yml | ||
- docs/*.py | ||
- docs/*.rst | ||
- environment-docs.yml | ||
- environment-dev.yml | ||
- pyproject.toml | ||
- tests/**.py | ||
- tox.ini | ||
- xsdba/__init__.py | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
bump_patch_version: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: write | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
allowed-endpoints: > | ||
files.pythonhosted.org:443 | ||
github.com:443 | ||
pypi.org:443 | ||
- name: Checkout Repository (no persist-credentials) | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- name: Set up Python3 | ||
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
with: | ||
python-version: "3.x" | ||
- name: Config Commit Bot | ||
run: | | ||
git config --local user.email "bumpversion[bot]@ouranos.ca" | ||
git config --local user.name "bumpversion[bot]" | ||
- name: Current Version | ||
run: | | ||
CURRENT_VERSION="$(grep -E '__version__' src/xsdba/__init__.py | cut -d ' ' -f3)" | ||
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV | ||
- name: Install CI libraries | ||
run: | | ||
python -m pip install --require-hashes -r CI/requirements_ci.txt | ||
- name: Conditional Bump Version | ||
run: | | ||
if [[ ${{ env.CURRENT_VERSION }} =~ -dev(\.\d+)? ]]; then | ||
echo "Development version (ends in 'dev(\.\d+)?'), bumping 'build' version" | ||
bump-my-version bump build | ||
else | ||
echo "Version is stable, bumping 'patch' version" | ||
bump-my-version bump patch | ||
fi | ||
bump-my-version show-bump | ||
- name: Push Changes | ||
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0 | ||
with: | ||
force: false | ||
github_token: ${{ secrets.BUMP_VERSION_TOKEN }} | ||
branch: ${{ github.ref }} |
Oops, something went wrong.