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.
18 lines
460 B
18 lines
460 B
# https://pre-commit.com
|
|
# This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file.
|
|
name: pre-commit
|
|
on: [pull_request, push]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
- run: pip install pre-commit
|
|
- run: pre-commit --version
|
|
- run: pre-commit install
|
|
- run: pre-commit run --all-files
|