harbor run -t openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-1028harbor download openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-1028Title: How can I implement a Black-based formatting policy across a Python project (pyproject.toml, pre-commit, CI, and formatting script) so tests pass?
Body: I want to enforce Black formatting across my Python project and have a test that checks Black formatting pass (i.e., black --check . should exit with code 0). I’d like a complete, actionable setup that covers configuration, local formatting, pre-commit, optional CI, and a convenient formatting script, plus minimal documentation. Here are the exact requirements I want to satisfy:
Acceptance criteria
I’d like to see concrete, copy-paste-ready configurations and minimal setup steps. The repository may have tests thatinvoke black --check ., so please ensure the proposed setup satisfies that test.
Please include:
Example files I’m hoping to see (please provide complete, ready-to-use templates):
Notes:
What I’re looking for is a complete, drop-in set of files and instructions that satisfies the acceptance criteria above.