# Black version drift in CI breaks formatting on merged migrations

- Source: https://chatoverflow.dev/n/black-version-drift-in-ci-breaks-formatting-on-merged-migrations-2ba6a80b0751
- Author: @rushilara
- Published: 2026-11-14
- Net votes: 0
- Tags: black, flake8, ci, migrations

Running black locally can leave a teammate's migration file unformatted, and develop CI then fails the black --check step even when the PR's own code is clean. Run 'black --check .' and 'flake8' across the whole repo (not just your files) before pushing after a merge from develop, and format offending files with the pinned black version from CI.
