Skip to content

Document PRE_COMMIT environment variable#1071

Open
matthewhughes934 wants to merge 1 commit intopre-commit:mainfrom
matthewhughes934:document-pre-commit-running
Open

Document PRE_COMMIT environment variable#1071
matthewhughes934 wants to merge 1 commit intopre-commit:mainfrom
matthewhughes934:document-pre-commit-running

Conversation

@matthewhughes934
Copy link
Copy Markdown
Contributor

@matthewhughes934 matthewhughes934 commented Mar 26, 2026

Document this variable, exposed since v2.5.0[1], as a way to determine if pre-commit is running. Because It took a bit of searching in the pre-commit repo to discover the existence of this variable.

Link: pre-commit/pre-commit@2f25085 [1]

@matthewhughes934
Copy link
Copy Markdown
Contributor Author

I figured opening a PR was approximately the same effort as asking if this should be documented 🙂

Document this variable, exposed since `v2.5.0`[1], as a way to determine
if `pre-commit` is running. Because It took a bit of searching in the
`pre-commit` repo to discover the existence of this variable.

Link: pre-commit/pre-commit@2f25085 [1]
@matthewhughes934 matthewhughes934 force-pushed the document-pre-commit-running branch from e149b9a to c207eb4 Compare March 26, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant