You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
460 B

3 months ago
  1. # https://pre-commit.com
  2. # This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file.
  3. name: pre-commit
  4. on: [pull_request, push]
  5. permissions:
  6. contents: read
  7. jobs:
  8. pre-commit:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: actions/setup-python@v2
  13. - run: pip install pre-commit
  14. - run: pre-commit --version
  15. - run: pre-commit install
  16. - run: pre-commit run --all-files