Python, pre-commit, and black
If you’ve had trouble configuring a python project with local repo copies of black and get errors you can’t explain, this may help. Maybe. I ran into some config issues somewhere between my pre-commit config and my black config. In case someone else runs into this I wanted to leave some bread crumbs. The issue. Black keeps exiting with “exit code: 123” after it tries formatting non-python files. It then told me it couldn’t format files that weren’t python files: yaml, md, and toml. I’d thought I’d excluded everything I needed to, but something was still tripping me up. ...