not just styling, any hook can be easily implemented.
hooks from {precommit} are documented and extensively tested.
building on the shoulders of giants (pre-commit.com) and abstract away a lot of logic not specific to R hooks.
But of course it's not as flexible as Building your own GitHub actions from scratch, eg when it comes to controlling the environment, system libraries etc.