diff options
-rw-r--r-- | .github/workflows/lint_python.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml new file mode 100644 index 0000000..c04a772 --- /dev/null +++ b/.github/workflows/lint_python.yml @@ -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 . |