I am just trying to use precommit
as a git hook on my python project. What I want to do is to run black only on the committed files. I am also running black through poetry.
At the moment my config looks like:
fail_fast: true
repos:
- repo: local
hooks:
- id: system
name: Black
entry: poetry run black .
pass_filenames: false
language: system
This, of course, runs black on the whole project structure and this is not what I want.
Is it possible to just run black on the committed files.