Skip to content

Add Command hook - #55

Closed
zonito wants to merge 2 commits into
pre-commit:real_masterfrom
zonito:real_master
Closed

zonito wants to merge 2 commits into
pre-commit:real_masterfrom
zonito:real_master

Conversation

@zonito

@zonito zonito commented Jul 19, 2015

Copy link
Copy Markdown

No description provided.

@asottile

Copy link
Copy Markdown
Member

Thanks for the PR!

This functionality is built into pre-commit after version 0.5.0 (however I have yet to document it). You can read more about it from the pull request: pre-commit/pre-commit#226

The tl;dr that I hope to commit to the docs soon is you can do something like this:

-   repo: local
    hooks:
    -   id: system-local-hook
        name: Just runs ls because why not
        entry: ls
        language: system
        files: ''

@zonito

zonito commented Jul 19, 2015

Copy link
Copy Markdown
Author

Great to see, you guys are working on it. This feature is must have, so thought of building one. But anyways, please feel free to close it, If nothing new to integrate in your system hook.

@asottile asottile closed this Jul 19, 2015
@asottile

asottile commented May 4, 2016

Copy link
Copy Markdown
Member

local hooks are now documented here: http://pre-commit.com/#repository-local-hooks

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.

2 participants