44 # This hook should always pass. It will print a message if the local version
55 # is out of date.
66 - repo : https://github.com/lincc-frameworks/pre-commit-hooks
7- rev : v0.1. 2
7+ rev : v0.2
88 hooks :
99 - id : check-lincc-frameworks-template-version
1010 name : Check template version
@@ -41,13 +41,13 @@ repos:
4141 description : Verify that pyproject.toml adheres to the established schema.
4242 # Verify that GitHub workflows are well formed
4343 - repo : https://github.com/python-jsonschema/check-jsonschema
44- rev : 0.34.0
44+ rev : 0.36.1
4545 hooks :
4646 - id : check-github-workflows
4747 args : ["--verbose"]
4848 # Automatically sort the imports used in .py files
4949 - repo : https://github.com/pycqa/isort
50- rev : 6.1 .0
50+ rev : 7.0 .0
5151 hooks :
5252 - id : isort
5353 name : Run isort
8585 ]
8686 # Analyze the code style and report code that doesn't adhere.
8787 - repo : https://github.com/psf/black
88- rev : 25.9 .0
88+ rev : 26.1 .0
8989 hooks :
9090 - id : black-jupyter
9191 name : Format code using black
@@ -108,32 +108,15 @@ repos:
108108 [
109109 " --ignore-missing-imports" , # Ignore imports without type hints
110110 ]
111- # Make sure Sphinx can build the documentation while explicitly omitting
112- # notebooks from the docs, so users don't have to wait through the execution
113- # of each notebook or each commit. By default, these will be checked in the
114- # GitHub workflows.
115- - repo : local
111+ - repo : https://github.com/lincc-frameworks/pre-commit-hooks
112+ rev : v0.2.1
116113 hooks :
117- - id : sphinx-build
118- name : Build documentation with Sphinx
119- entry : sphinx-build
120- language : system
121- always_run : true
122- exclude_types : [file, symlink]
114+ - id : pre-executed-nb-never-execute
115+ name : Check pre-executed notebooks
116+ files : ^docs/tutorials/pre_executed/.*\.ipynb$
117+ verbose : true
123118 args :
124- [
125- " -M" , # Run sphinx in make mode, so we can use -D flag later
126- # Note: -M requires next 3 args to be builder, source, output
127- " html" , # Specify builder
128- " ./docs" , # Source directory of documents
129- " ./_readthedocs" , # Output directory for rendered documents
130- " -T" , # Show full trace back on exception
131- " -E" , # Don't use saved env; always read all files
132- " -d" , # Flag for cached environment and doctrees
133- " ./docs/_build/doctrees" , # Directory
134- " -D" , # Flag to override settings in conf.py
135- " exclude_patterns=tutorials/*,_build" , # Exclude notebooks and build dir from pre-commit
136- ]
119+ ["docs/tutorials/pre_executed/",]
137120 # Run unit tests, verify that they pass. Note that coverage is run against
138121 # the ./src directory here because that is what will be committed. In the
139122 # github workflow script, the coverage is run against the installed package
0 commit comments