diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7570992b..275d3847 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -14,4 +14,11 @@ jobs: - name: Linting run: | pip install pre-commit - pre-commit run --all-files + + # avoiding failures unrelated to PR contents + if [ "${{ github.event_name }}" = "schedule" ]; then + pre-commit clean + pre-commit autoupdate + fi + + pre-commit run --all-files --show-diff-on-failure diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a45aa85b..7e971a47 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,3 +20,10 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - id: debug-statements + + - repo: https://github.com/AgnieszkaZaba/devops_tests + rev: 6260ff80f0fb46f72de26dcbe173ce5564f236de + hooks: + - id: check-notebook-open-atmos-structure + name: check notebook has open-atmos structure + args: [--repo-name=PyPartMC]