From aeafcbf1fffd06c732ed40bdcb771b1fbdb92568 Mon Sep 17 00:00:00 2001 From: Andrey Khrolenok Date: Mon, 1 Mar 2021 13:52:46 +0300 Subject: [PATCH] Remove pre-commit autoupdate action --- .github/workflows/pre-commit-update.yml | 28 ------------------------- .pre-commit-config.yaml | 7 ++++--- 2 files changed, 4 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/pre-commit-update.yml diff --git a/.github/workflows/pre-commit-update.yml b/.github/workflows/pre-commit-update.yml deleted file mode 100644 index 9083636..0000000 --- a/.github/workflows/pre-commit-update.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Pre-commit auto-update -on: - schedule: - - cron: '0 0 * * *' -jobs: - auto-update: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: "Set up Python" - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: "Install pre-commit" - run: pip install pre-commit - - name: "Run pre-commit autoupdate" - run: pre-commit autoupdate - - name: "Create Pull Request" - uses: peter-evans/create-pull-request@v3.8.2 - with: - token: ${{ secrets.CPR_GITHUB_TOKEN }} - branch: update/pre-commit-autoupdate - title: "Auto-update pre-commit hooks" - commit-message: "Auto-update pre-commit hooks" - body: | - Update versions of tools in pre-commit - configs to latest version - labels: dependencies diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1872f8f..137db6d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,9 +48,10 @@ repos: - id: check-json files: ^(custom_components|tests)/.+\.json$ - id: trailing-whitespace - - id: no-commit-to-branch - args: - - --branch=master +# Uncomment below lines if you want to follow classical GitHub flow style development +# - id: no-commit-to-branch +# args: +# - --branch=master - repo: local hooks: # Run mypy through our wrapper script in order to get the possible