python-lint.yml 703 B

123456789101112131415161718192021222324
  1. name: flake8 Lint
  2. on: [push, pull_request]
  3. concurrency:
  4. group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
  5. cancel-in-progress: true
  6. jobs:
  7. flake8-lint:
  8. runs-on: ubuntu-latest
  9. name: Lint
  10. steps:
  11. - name: Check out source repository
  12. uses: actions/checkout@v4
  13. - name: Set up Python environment
  14. uses: actions/setup-python@v5
  15. with:
  16. python-version: "3.11"
  17. - name: flake8 Lint
  18. uses: py-actions/flake8@v2
  19. with:
  20. ignore: "E203,E211,E221,E225,E231,E241,E251,E261,E266,E501,E701,E704,W503"
  21. exclude: "examples/*,examples/*/**,*/**/__init__.py,convert-hf-to-gguf-update.py"