Skip to content

Merge pull request #804 from NCAS-CMS/Sharar-A #745

Merge pull request #804 from NCAS-CMS/Sharar-A

Merge pull request #804 from NCAS-CMS/Sharar-A #745

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/[email protected]