Skip to content

Commit ecf14b9

Browse files
committed
document
1 parent 843dc55 commit ecf14b9

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ repos:
4141
entry: python scripts/check_toc_is_complete.py
4242
language: python
4343
name: Check all notebooks appear in table of contents
44+
pass_filenames: false
4445
types: [jupyter]
4546
- id: check-no-tests-are-ignored
4647
entry: python scripts/check_all_tests_are_covered.py
4748
files: ^\.github/workflows/pytest\.yml$
4849
language: python
4950
name: Check no tests are ignored
51+
pass_filenames: false

scripts/check_all_tests_are_covered.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
In .github/workflows/pytest.yml, tests are split between multiple jobs.
3+
4+
Here, we check that the jobs ignored by the first job actually end up getting
5+
run by the other jobs.
6+
This is intended to be used as a pre-commit hook, see `.pre-commit-config.yaml`.
7+
You can run it manually with `pre-commit run check-no-tests-are-ignored --all`.
8+
"""
9+
110
from pathlib import Path
211

312
import re

0 commit comments

Comments
 (0)