biviosoftware / home-env

MIT License
2 stars 2 forks source link

emacs: Run pykern.pkcli.fmt.run on vc-diff and fmt.check on vc-commit #37

Closed robnagler closed 2 years ago

robnagler commented 2 years ago

I almost always run one or the other in emacs so it would be convenient. Alternatively, could create a new command that is used in place for git commit in emacs and in the shell that runs a check.

e-carlin commented 2 years ago

Should we add a git commit hook which would work for everyone on the team? Maybe distributed through vagrant-sirepo-dev?

robnagler commented 2 years ago

I want it to happen before the commit. I also have my suspicions about hooks, but I forgot why. Feel free to experiment if they meet the goal of failing a commit.

robnagler commented 2 years ago

fixed by always running fmt on save