Skip to content

Commit

Permalink
Add GitHub Actions workflow lint_python
Browse files Browse the repository at this point in the history
Run codespell, flake8, and isort for each change to one of the scripts
in contrib/.

Signed-off-by: Lukas Fleischer <[email protected]>
  • Loading branch information
Lukas Fleischer committed Apr 3, 2021
1 parent 86f313b commit 98059e3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 .

0 comments on commit 98059e3

Please sign in to comment.