Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions python-project-template/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ repos:
# Note: -M requires next 3 args to be builder, source, output
"html", # Specify builder
"./docs", # Source directory of documents
"./docs/build/html", # Output directory for rendered documents
"./_readthedocs", # Output directory for rendered documents
"-T", # Show full trace back on exception
"-E", # Don't use saved env; always read all files
"-d", # Flag for cached environment and doctrees
"./docs/build/doctrees", # Directory
"./docs/_build/doctrees", # Directory
"-D", # Flag to override settings in conf.py
"exclude_patterns=notebooks/*", # Exclude our notebooks from pre-commit
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this remains a difference. The pre-commit excludes notebooks while the sphinx builds include the notebooks.
I am only noting this since we really do not want the precommit to buid notebooks (dependency on pandocs).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, and good observation. Additionally, building notebooks could take a long time if there is a significant amount of processing. It was a conscious decision to not build notebooks during the pre-commit step for these very reasons.

]
Expand All @@ -175,8 +175,8 @@ repos:
"-b", # Flag to select which builder to use
"html", # Use the HTML builder
"-d", # Flag for cached environment and doctrees
"docs/build/doctrees", # directory
"./docs/_build/doctrees", # directory
"./docs", # Source directory of documents
"docs/build/html", # Output directory for rendered documents.
"./_readthedocs", # Output directory for rendered documents.
]
{%- endif %}