From a736aea70b973621b5e0f475f95955c6d7c2776e Mon Sep 17 00:00:00 2001 From: ElNiak Date: Wed, 5 Jun 2024 14:47:22 +0200 Subject: [PATCH] install pre-commit --- .github/workflows/pre-commit.yml | 14 ++++++++++++++ ...e-commit-config.yaml => .pre-commit-config.yaml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pre-commit.yml rename .github/workflows/.pre-commit-config.yaml => .pre-commit-config.yaml (93%) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 000000000..89779db06 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,14 @@ +name: pre-commit + +on: + pull_request: + push: + branches: [production] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/.pre-commit-config.yaml b/.pre-commit-config.yaml similarity index 93% rename from .github/workflows/.pre-commit-config.yaml rename to .pre-commit-config.yaml index e63aa404f..574eef932 100644 --- a/.github/workflows/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: rev: v3.2.0 hooks: - id: trailing-whitespace - - id: end-of-file-fixer + # - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - id: check-ast