From bcfbc3a1c848aac5333dd64ce3a811aa3ad6847b Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Mon, 13 Feb 2023 03:22:11 +0100 Subject: [PATCH] Enable pre-commit on GitHub --- .github/workflows/pre-commit.yml | 14 ++++++++++++++ .pre-commit-config.yaml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..ad71791 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,14 @@ +name: pre-commit + +on: + pull_request: + push: + branches: [main] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - uses: pre-commit/action@v3.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0991cdb..ce77b0f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: end-of-file-fixer - id: debug-statements - id: check-toml - # - id: check-yaml + - id: check-yaml - repo: https://github.com/psf/black rev: 23.1.0