Skip to content

Commit 54b9bd9

Browse files
committed
Exclude _build directory from pre-commit sphinx build.
1 parent ab4b1b8 commit 54b9bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-project-template/.pre-commit-config.yaml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ repos:
164164
"-d", # Flag for cached environment and doctrees
165165
"./docs/_build/doctrees", # Directory
166166
"-D", # Flag to override settings in conf.py
167-
"exclude_patterns=notebooks/*", # Exclude our notebooks from pre-commit
167+
"exclude_patterns=notebooks/*,_build", # Exclude notebooks and build dir from pre-commit
168168
]
169169
{%- elif include_docs %}
170170
# Make sure Sphinx can build the documentation without issues.

0 commit comments

Comments
 (0)