Skip to content

Fix misleading error message when it is not possible to create area weights requested from cf.Field.collapse #656

Fix misleading error message when it is not possible to create area weights requested from cf.Field.collapse

Fix misleading error message when it is not possible to create area weights requested from cf.Field.collapse #656

Workflow file for this run

name: Linting
on:
push:
branches:
- main
pull_request:
# default (from docs) is just on [opened, synchronize, reopened]
types: [opened, reopened, ready_for_review, edited]
branches:
- main
# Note: only running this on Ubuntu (latest) and Python 3.8 as representative,
# since the linting output should be machine dependent and not vary much if
# at all by Python minor version.
jobs:
# Lint against selected pre-commit hooks (see https://pre-commit.com
# and https://github.com/pre-commit/action).
# *The config. applied here is from our .pre-commit-config.yaml*
#
# Note the pre-commit linting includes all of the other linters configured
# to run as pre-commit hooks, namely black, flake8 and docformatter etc.,
# so there is no need to set these up individually!
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0