Skip to content
Open
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
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates once a week
interval: 'weekly'
interval: "weekly"
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
pull_request:
schedule:
- cron: '0 0 * * *' # Daily “At 00:00”
- cron: "0 0 * * *" # Daily “At 00:00”
workflow_dispatch: # allows you to trigger manually

concurrency:
Expand All @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
Expand All @@ -31,7 +31,7 @@ jobs:
activate-environment: xcollection-dev
auto-update-conda: false
python-version: ${{ matrix.python-version }}
mamba-version: '*'
mamba-version: "*"
use-mamba: true
miniforge-variant: Mambaforge
environment-file: ci/environment.yml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upstream-dev-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upstream CI
on:
push:
schedule:
- cron: '0 0 * * *' # Daily “At 00:00” UTC
- cron: "0 0 * * *" # Daily “At 00:00” UTC
workflow_dispatch: # allows you to trigger the workflow run manually

concurrency:
Expand All @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
Expand All @@ -31,7 +31,7 @@ jobs:
auto-update-conda: false
python-version: ${{ matrix.python-version }}
environment-file: ci/environment-upstream-dev.yml
mamba-version: '*'
mamba-version: "*"
use-mamba: true
miniforge-variant: Mambaforge

Expand Down
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -12,33 +12,33 @@ repos:
- id: check-yaml
- id: double-quote-string-fixer

- repo: https://github.com/psf/black
rev: 22.8.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black-jupyter

- repo: https://github.com/keewis/blackdoc
rev: v0.3.6
rev: v0.4.6
hooks:
- id: blackdoc

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 7.3.0
hooks:
- id: flake8

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 7.0.0
hooks:
- id: isort

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.0
rev: v4.0.0-alpha.8
hooks:
- id: prettier

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.4.0
rev: 1.9.1
hooks:
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==2.7.3]
Expand Down
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ codecov:
comment: false

ignore:
- 'tests/*.py'
- 'setup.py'
- "tests/*.py"
- "setup.py"

coverage:
precision: 2
Expand Down
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import xcollection


# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
Expand Down
4 changes: 2 additions & 2 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ version: 2
conda:
environment: ci/environment-docs.yml
build:
os: 'ubuntu-20.04'
os: "ubuntu-20.04"
tools:
python: 'mambaforge-4.10'
python: "mambaforge-4.10"
3 changes: 2 additions & 1 deletion xcollection/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
# flake8: noqa
""" Top-level module for xcollection. """
"""Top-level module for xcollection."""

from pkg_resources import DistributionNotFound, get_distribution

from .main import Collection, open_collection
Expand Down
2 changes: 1 addition & 1 deletion xcollection/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import xarray as xr
from xarray.core.weighted import Weighted

unicode_key = u'\U0001F511'
unicode_key = u'\U0001f511'


def _rpartial(func, *args, **kwargs):
Expand Down
Loading