Skip to content

Add pre-commit to docs conda environment - #469

Merged
ax3l merged 1 commit into
BLAST-AI-ML:mainfrom
EZoni:docs_conda_env_precommit
Sep 18, 2026
Merged

ax3l merged 1 commit into
BLAST-AI-ML:mainfrom
EZoni:docs_conda_env_precommit

Conversation

@EZoni

@EZoni EZoni commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

I think we need to add pre-commit to the conda environment used to develop and build the documentation locally. Otherwise, git commit results in the following error, due to the presence of the .pre-commit-config.yaml file in the root directory:

`pre-commit` not found.  Did you forget to activate your virtualenv?

We could also leave the conda environment file as is and rely on individual developers adding pre-commit locally, but this would have to happen every time a new dependency is added to the conda environment file and the conda environment needs to be recreated, so I don't find it very practical. I ran into exactly this problem when I tried pushing commits to #468 where the conda environment needed to be recreated (hence losing the previous one, where I had added pre-commit locally while working on #341).

@EZoni
EZoni requested a review from ax3l September 18, 2026 21:43
@EZoni EZoni added bug Something isn't working documentation labels Sep 18, 2026
Comment thread docs/docs.yml

dependencies:
- myst-parser
- pre-commit

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is installed on RTD, so technically not needed there... But if we advertise this as the dev environment for docs then fine.

@ax3l ax3l self-assigned this Sep 18, 2026
@ax3l
ax3l merged commit d7fa3a1 into BLAST-AI-ML:main Sep 18, 2026
3 checks passed
@EZoni
EZoni deleted the docs_conda_env_precommit branch September 18, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants