Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make talisman work well with other hooks #12

Closed
jacksingleton opened this issue Apr 28, 2016 · 11 comments
Closed

make talisman work well with other hooks #12

jacksingleton opened this issue Apr 28, 2016 · 11 comments

Comments

@jacksingleton
Copy link
Collaborator

No description provided.

@tomdavidson
Copy link

Im curious why pre-push rather than pre-commit?

@jacksingleton
Copy link
Collaborator Author

it actually works with pre-commit as well thanks to @jmpak #3 -- although this is not an option in the installer (yet).

Installing as a pre-push hook means we have to worry less about performance if we add slower detectors in the future.

@AikoPath
Copy link

given #16 I'd assume it might a good to make pre-commit the default.

@svishwanath-tw
Copy link
Collaborator

@jacksingleton , we currently support using talisman as a pre-commit hook, you could look at latest Readme on master for more details.
As for talisman by itself playing well with other hooks is demanding too much of it. Breaks SRP (do one thing and do it well)
I personally think, talisman should stick to the standard hook contract (non-zero exit on error) and let a a hook management system like handle the playing well with other hooks part.
What do you think ?

PS: I think a shell based hook management system would be most optimal for this use-case, like captain-hook, since it takes away dependence on another interpreted language like python or node. But captain-hook is now defunct/un-maintained. (How) Can we address this ?

@modean
Copy link

modean commented Nov 20, 2018

Has talisman been tested together with Husky? In other words are there examples providing instructions how to configure both to work together?

https://github.com/typicode/husky

@harinee
Copy link
Collaborator

harinee commented Apr 25, 2019

@modean Talisman provides support with Husky. Please see https://github.com/thoughtworks/talisman#2-husky-linuxunixwindows

@harinee
Copy link
Collaborator

harinee commented Apr 25, 2019

@jacksingleton talisman supports working with multiple hooks with pre-commit tool and Husky. Please see https://github.com/thoughtworks/talisman#handling-existing-hooks

If this looks fine, could you please close this issue?

@modean
Copy link

modean commented Apr 25, 2019

@harinee ok let my try to configure the provided example in my projects so that I can provide you feedback on whether the results are the one I would expect.

@harinee
Copy link
Collaborator

harinee commented May 20, 2019

Hi @modean Any feedback? If you are happy with the changes, we could close this ticket

@aaquibzama-tw
Copy link
Collaborator

Hi @modean , could you let us know if you were able to get it working with other hooks. If yes, we could close this ticket.

@harinee
Copy link
Collaborator

harinee commented Aug 2, 2019

Closing, since we didn't hear any further issues on this. Please feel free to report if issues are faced in this regard

@harinee harinee closed this as completed Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants