summaryrefslogtreecommitdiffstats
path: root/.github/workflows/lint_python.yml
blob: c04a77208d0f7556a0ce206746e0399c2f5161d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Lint Python

on:
  pull_request:
    paths: ['contrib/**']
  push:
    paths: ['contrib/**']

jobs:
  lint_python:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: contrib
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
      - run: pip install codespell flake8 isort
      - run: codespell --quiet-level=2 || true
      - run: flake8 --count --show-source --statistics
      - run: isort --check-only --profile black .