Skip to content

Fix redundant/incomplete installs in docs CI, replace with pyproject.toml optional deps#3226

Merged
MMathisLab merged 3 commits intoDeepLabCut:mainfrom
C-Achard:cy/fix-missing-numpydoc
Mar 4, 2026
Merged

Fix redundant/incomplete installs in docs CI, replace with pyproject.toml optional deps#3226
MMathisLab merged 3 commits intoDeepLabCut:mainfrom
C-Achard:cy/fix-missing-numpydoc

Conversation

@C-Achard
Copy link
Copy Markdown
Collaborator

@C-Achard C-Achard commented Mar 4, 2026

Fix documentation dependencies

  • Added missing numpydoc to the docs dependencies in pyproject.toml to support NumPy-style docstrings in documentation builds.
  • Removed the redundant installation of jupyter-book and sphinxcontrib-mermaid from the GitHub Actions workflow, as these are now managed through pyproject.toml under [docs].

Miscellaneous changes

Ran pre-commit hooks on pyproject.toml.

Code formatting and style configuration:

  • Moved and reformatted the [tool.isort] section in pyproject.toml for better clarity and maintainability, ensuring consistent import sorting across the codebase. [1] [2]

C-Achard added 3 commits March 4, 2026 18:11
Add numpydoc to the pip install step in .github/workflows/publish-book.yml so the book build includes support for NumPy-style docstring parsing alongside jupyter-book and sphinxcontrib-mermaid.
Include "numpydoc" in the docs extra of pyproject.toml so NumPy-style docstrings are rendered correctly in the project's documentation builds.
Remove an explicit pip install of jupyter-book==1.0.4.post1, sphinxcontrib-mermaid, and numpydoc from the publish-book GitHub Actions workflow. These docs dependencies are already installed via `python -m pip install .[docs]`, so the extra install was redundant and could cause downstream issues, while conflicting with the intent that pyproject.toml be the single source of truth.
@C-Achard C-Achard added this to the DLC3 milestone Mar 4, 2026
@C-Achard C-Achard self-assigned this Mar 4, 2026
@C-Achard C-Achard added documentation documentation updates/comments bug fix! fix for a real buggy one... CI Related to CI/CD jobs and automated testing labels Mar 4, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR consolidates the documentation CI by making pyproject.toml the single source of truth for docs dependencies. It adds the missing numpydoc package (used as a Sphinx extension in _config.yml) to the [docs] optional dependencies, removes the now-redundant explicit pip install of jupyter-book and sphinxcontrib-mermaid from the CI workflow, and cleans up the pyproject.toml formatting by moving the [tool.isort] section out of the [tool.yapf] block where it was previously indented.

Changes:

  • Added numpydoc to [project.optional-dependencies.docs] in pyproject.toml
  • Removed redundant pip install jupyter-book==1.0.4.post1 sphinxcontrib-mermaid step from .github/workflows/publish-book.yml
  • Moved and reformatted the [tool.isort] section in pyproject.toml, separating it from [tool.yapf]

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Adds numpydoc to docs optional deps; moves [tool.isort] to its own section earlier in the file; removes isort config from within the yapf block
.github/workflows/publish-book.yml Removes the explicit redundant install of jupyter-book and sphinxcontrib-mermaid, now covered by pip install .[docs]

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@MMathisLab MMathisLab merged commit 2c7d8aa into DeepLabCut:main Mar 4, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix! fix for a real buggy one... CI Related to CI/CD jobs and automated testing documentation documentation updates/comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants