Run codespell, flake8, and isort for each change to one of the scripts in contrib/. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
22 lines
491 B
YAML
22 lines
491 B
YAML
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 .
|