Update pre-commit and add new hooks (#7781)
Update pre-commit and add new hooks (#7781)

* update precommit

* Update .pre-commit-config.yaml

Co-authored-by: Carlos Mocholí <9ea49b15de02ed3f0713c097ebf7758e032ec6b9@gmail.com>

* Apply suggestions from code review

Co-authored-by: Carlos Mocholí <9ea49b15de02ed3f0713c097ebf7758e032ec6b9@gmail.com>

Co-authored-by: Carlos Mocholí <9ea49b15de02ed3f0713c097ebf7758e032ec6b9@gmail.com>
williamFalcon/pytorch-lightning,williamFalcon/pytorch-lightning