diff options
author | John L. Villalovos <john@sodarock.com> | 2021-12-07 10:50:48 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-12-07 10:50:48 -0800 |
commit | 5f3525065bc2253d5325c157a88242d6857bfc39 (patch) | |
tree | 60545781a6764f35f755d27f1542729680c80da9 | |
parent | a6d631fdd6181a809268f630060d8a1df28d9004 (diff) | |
download | gitlab-jlvillal/pylint.tar.gz |
chore: run pre-commit on changes to the config filejlvillal/pylint
If .pre-commit-config.yaml or .github/workflows/pre_commit.yml are
updated then run pre-commit.
-rw-r--r-- | .github/workflows/pre_commit.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml new file mode 100644 index 0000000..aa8ea63 --- /dev/null +++ b/.github/workflows/pre_commit.yml @@ -0,0 +1,32 @@ +name: pre_commit + +on: + push: + branches: + - main + paths: + .github/workflows/pre_commit.yml + .pre-commit-config.yaml + pull_request: + branches: + - main + - master + paths: + .github/workflows/pre_commit.yml + .pre-commit-config.yaml + +env: + PY_COLORS: 1 + +jobs: + + pre_commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - run: pip install --upgrade -r requirements.txt -r requirements-lint.txt pre-commit + - name: Run pre-commit install + run: pre-commit install + - name: pre-commit run all-files + run: pre-commit run --all-files |