Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{
"template": "https://github.com/Ouranosinc/cookiecutter-pypackage.git",
"commit": "760bcbb2540bd973d57ea1aa1f1b24759f6d0955",
"commit": "66708e5e15f00caaaaf1748bf0a7e041bc5c6243",
"checkout": null,
"context": {
"cookiecutter": {
"full_name": "Abel Aoun",
"email": "aoun.abel@gmail.com",
"github_username": "xarray-contrib",
"orcid_id": "0000-0003-2289-2890",
"project_name": "xncml",
"project_slug": "xncml",
"project_short_description": "Tools for manipulating NcML (NetCDF Markup Language) files with/for xarray",
"pypi_username": "bzah",
"version": "0.5.1",
"use_pytest": "y",
"use_black": "n",
"use_conda": "n",
"add_pyup_badge": "n",
"make_docs": "y",
"add_translations": "n",
"command_line_interface": "No command-line interface",
Expand All @@ -24,7 +23,7 @@
"generated_with_cruft": "y",
"__gh_slug": "https://github.com/xarray-contrib/xncml",
"_template": "https://github.com/Ouranosinc/cookiecutter-pypackage.git",
"_commit": "760bcbb2540bd973d57ea1aa1f1b24759f6d0955"
"_commit": "66708e5e15f00caaaaf1748bf0a7e041bc5c6243"
}
},
"directory": null
Expand Down
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ignore =
D,
E,
F,
RST210,
W503
per-file-ignores =
rst-roles =
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ updates:
- package-ecosystem: github-actions
directory: /.github/workflows
schedule:
interval: monthly
interval: "quarterly"
groups:
actions:
patterns:
Expand All @@ -15,7 +15,7 @@ updates:
- package-ecosystem: pip
directory: /
schedule:
interval: monthly
interval: "quarterly"
groups:
ci:
patterns:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand Down Expand Up @@ -94,6 +94,6 @@ jobs:
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
persist-credentials: false

- name: Dependency Review
uses: actions/dependency-review-action@56339e523c0409420f6c2c9a2f4292bbb3c07dd3 # v4.8.0
uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a # v4.8.1
9 changes: 2 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.x"
python-version: [ "3.13" ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
Expand Down Expand Up @@ -61,11 +60,7 @@ jobs:
strategy:
matrix:
os: [ 'ubuntu-latest' ]
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
strategy:
matrix:
python: [ "3.13" ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
Expand All @@ -28,19 +31,24 @@ jobs:
pypi.org:443
ruf-repo-cdn.sigstore.dev:443
upload.pypi.org:443

- name: Checkout Repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Set up Python3
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: "3.x"
python-version: ${{ matrix.python }}

- name: Install CI libraries
run: |
python -m pip install --require-hashes -r CI/requirements_ci.txt

- name: Build a binary wheel and a source tarball
run: |
python -m flit build

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
21 changes: 18 additions & 3 deletions .github/workflows/tag-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@ jobs:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
egress-policy: block
allowed-endpoints: >
files.pythonhosted.org:443
github.com:443
pypi.org:443
test.pypi.org:443

- name: Checkout Repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Create Release
uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # 2.3.3
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # 2.4.1
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -42,6 +49,9 @@ jobs:
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
strategy:
matrix:
python: [ "3.13" ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
Expand All @@ -54,20 +64,25 @@ jobs:
pypi.org:443
ruf-repo-cdn.sigstore.dev:443
test.pypi.org:443

- name: Checkout Repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Set up Python3
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: "3.x"
python-version: ${{ matrix.python }}

- name: Install CI libraries
run: |
python -m pip install --require-hashes -r CI/requirements_ci.txt

- name: Build a binary wheel and a source tarball
run: |
python -m flit build

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/workflow-warning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
egress-policy: block
allowed-endpoints: >
api.github.com:443

- name: Find Warning Comment
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
id: fc_warning
Expand All @@ -39,12 +40,13 @@ jobs:
comment-author: 'github-actions[bot]'
body-includes: |
This Pull Request modifies GitHub workflows and is coming from a fork.

- name: Create Warning Comment
if: |
(steps.fc_warning.outputs.comment-id == '') &&
(!contains(github.event.pull_request.labels.*.name, 'approved')) &&
(github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
with:
comment-id: ${{ steps.fc_warning.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand All @@ -53,17 +55,19 @@ jobs:
> This Pull Request modifies GitHub Workflows and is coming from a fork.
**It is very important for the reviewer to ensure that the workflow changes are appropriate.**
edit-mode: replace

- name: Find Note Comment
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
id: fc_note
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: Workflow changes in this Pull Request have been approved!

- name: Update Comment
if: |
contains(github.event.pull_request.labels.*.name, 'approved')
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
with:
comment-id: ${{ steps.fc_note.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand Down
22 changes: 12 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,26 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: '.ipynb'
- id: fix-byte-order-marker
- id: name-tests-test
args: [ '--pytest-test-first' ]
- id: no-commit-to-branch
args: [ '--branch', 'main' ]
- id: check-docstring-first
- id: check-merge-conflict
- id: check-json
- id: pretty-format-json
args: [ '--autofix', '--no-ensure-ascii', '--no-sort-keys' ]
exclude: '.ipynb'
- id: check-toml
- id: check-yaml
args: [ '--allow-multiple-documents' ]
- id: debug-statements
- id: pretty-format-json
args: [ '--autofix', '--no-ensure-ascii', '--no-sort-keys' ]
- id: end-of-file-fixer
exclude: '.ipynb'
- id: fix-byte-order-marker
- id: name-tests-test
args: [ '--pytest-test-first' ]
- id: trailing-whitespace
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.3
hooks:
Expand All @@ -52,8 +54,8 @@ repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.3
hooks:
- id: ruff
args: [ '--fix' ]
- id: ruff-check
args: [ '--fix', '--show-fixes' ]
- id: ruff-format
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
Expand All @@ -66,7 +68,7 @@ repos:
hooks:
- id: vulture
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.14.1
# rev: v1.18.2
# hooks:
# - id: mypy
- repo: https://github.com/codespell-project/codespell
Expand All @@ -76,7 +78,7 @@ repos:
additional_dependencies: [ 'tomli' ]
args: [ '--toml=pyproject.toml' ]
# - repo: https://github.com/numpy/numpydoc
# rev: v1.8.0
# rev: v1.9.0
# hooks:
# - id: numpydoc-validation
# exclude: ^docs/|^tests/
Expand Down
1 change: 1 addition & 0 deletions CI/requirements_ci.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ deptry==0.23.1
flit==3.12.0
pip==25.2
pylint==3.3.8
tomli==2.1.1
tox-gh==1.5.0
tox==4.30.2
9 changes: 5 additions & 4 deletions CI/requirements_ci.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --generate-hashes --output-file=CI/requirements_ci.txt CI/requirements_ci.in
Expand Down Expand Up @@ -369,9 +369,9 @@ questionary==2.0.1 \
--hash=sha256:8ab9a01d0b91b68444dff7f6652c1e754105533f083cbe27597c8110ecc230a2 \
--hash=sha256:bcce898bf3dbb446ff62830c86c5c6fb9a22a54146f0f5597d3da43b10d8fc8b
# via bump-my-version
requests==2.32.3 \
--hash=sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760 \
--hash=sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6
requests==2.32.4 \
--hash=sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c \
--hash=sha256:27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422
# via flit
requirements-parser==0.11.0 \
--hash=sha256:35f36dc969d14830bf459803da84f314dc3d17c802592e9e970f63d0359e5920 \
Expand Down Expand Up @@ -425,6 +425,7 @@ tomli==2.2.1 \
--hash=sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a \
--hash=sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7
# via
# -r CI/requirements_ci.in
# deptry
# pylint
# pyproject-api
Expand Down
23 changes: 23 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This CITATION.cff file was generated with cffinit and templated with cookiecutter.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: "1.2.0"
title: "xncml"
message: >-
If you use this software, please cite it using the
metadata from this file.
type: "software"
authors:
- given-names: 'Abel'
family-names: 'Aoun'
email: 'aoun.abel@gmail.com'
orcid: "https://orcid.org/0000-0003-2289-2890"
contact:
- given-names: 'Abel'
family-names: 'Aoun'
email: 'aoun.abel@gmail.com'
orcid: "https://orcid.org/0000-0003-2289-2890"
repository-code: "https://github.com/xarray-contrib/xncml"
abstract: "Tools for manipulating NcML (NetCDF Markup Language) files with/for xarray"
license: "Apache-2.0"
version: "0.5.1"
Loading