asottile / babi

a text editor
MIT License
396 stars 46 forks source link

made sure babi uses pre-commit config when different repo #278

Closed arnocornette closed 1 year ago

arnocornette commented 1 year ago

Hello @asottile, I tried to fix the issue #256. It seemed like the only thing we needed was adding the config to the pre-commit return statement.

However I was not sure to either put it in a variable or just inline it so for now it is inlined. I can change this if you would like.

I also changed the formatting of the return statement. flake8 was complaining about the line being too long so I split it up.

Please let me know if you want any other changes, thanks!

P.S. My python sucks let me know if things are not pythonic..