diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ef6df64f..f5dd2814 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -14,6 +14,11 @@ jobs: - name: Linting run: | pip install pre-commit + + # avoiding failures unrelated to PR contents + if [ "${{ github.event_name }}" = "schedule" ]; then pre-commit clean pre-commit autoupdate - pre-commit run --all-files \ No newline at end of file + fi + + pre-commit run --all-files --show-diff-on-failure diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cfe3c77c..8652edae 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]