-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 935 Bytes
/
lint.yaml
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
31
32
33
34
35
36
#------------------------------------------------------------------------------
name: Lint
#------------------------------------------------------------------------------
# Workflow conditions
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
release:
types: [published]
#------------------------------------------------------------------------------
jobs:
#----------------------------------------------------------------------------
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: Install pre-commit
run: |
pip install pre-commit==2.6.0
pre-commit install
pre-commit install-hooks
- name: Lint with pre-commit
run: pre-commit run --all-files