Closed zaro0508 closed 5 years ago
Hi @zaro0508 that is a very good question. In fact @anapaulagomes contributed that feature a while ago. There is a catch, it isn't too easy to setup. This is mainly because pre-commit only provides each hook with a list of filenames rather than the diff. BUT we there is help:
- id: relint
name: relint
entry: relint-pre-commit.sh
language: system
I hope this helps you. Let me know if you have any further questions.
I would like to run this linter with pre-commit[1] and I only want to lint changed or newly added files. Is there a way to do that with the pre-commit framework?
[1] https://pre-commit.com