tweag / monad-bayes

A library for probabilistic programming in Haskell.
MIT License
410 stars 62 forks source link

unable to commit changes to repo fork #173

Closed aleeusgr closed 2 years ago

aleeusgr commented 2 years ago

Describe the bug when trying to commit changes to the repo get and error: 'pre-commit' not found. Did you forget to activate your virtualenv?

To Reproduce fork the repo, clone locally, make changes, add then run git commit -m 'message'

Expected behavior git commit should work as expected

Environment

Additional context Add any other context about the problem here.

reubenharry commented 2 years ago

I think this is something to do with being in a nix-shell. Have you tried this after doing e.g. nix-shell -p ormolu? You can commit with "--no-verify" if this doesn't work.

aleeusgr commented 2 years ago

--no-verify worked, thank you.

aleeusgr commented 2 years ago

I could reproduce the issue by adding pre-commits to flake output. Maybe it happens because pre-commit-hooks are in ~ but not in current repo? I've no idea,