cookie icon indicating copy to clipboard operation
cookie copied to clipboard

Black not configured in pre-commit to find src files?

Open benkrikler opened this issue 3 years ago • 1 comments

I'm playing around with pre-commit and black together, and looked through scikit-hep/cookie for inspiration (with the now-recommended hatch backend), but when pre-commit runs, black doesn't check any files. I've gone through black's docs and looked at other projects a bit and can't seem to see how black is figuring out the files / directory to search. Is it possible that the the generated pyproject.toml in this instance doesn't pass black enough information? Otherwise is there something else I've missed?

benkrikler avatar Aug 09 '22 17:08 benkrikler

Sheepishly closing this - it was a hasty issue creation. The commits I was experimenting with had no modified code for black to check. Apologies for the noise!

benkrikler avatar Aug 09 '22 18:08 benkrikler