-
Notifications
You must be signed in to change notification settings - Fork 11
30 lines (27 loc) · 972 Bytes
/
linting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]