lint.yml 728 B

123456789101112131415161718192021222324252627
  1. name: lint
  2. on: [push, pull_request]
  3. concurrency:
  4. group: ${{ github.workflow }}-${{ github.ref }}
  5. cancel-in-progress: true
  6. jobs:
  7. lint:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Set up Python 3.7
  12. uses: actions/setup-python@v2
  13. with:
  14. python-version: 3.7
  15. - name: Install pre-commit hook
  16. run: |
  17. pip install pre-commit
  18. pre-commit install
  19. - name: Linting
  20. run: pre-commit run --all-files
  21. - name: Check docstring coverage
  22. run: |
  23. pip install interrogate
  24. interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 60 mim