# Use flake8 max-line-length 88 and noqa for black-unfixable long strings

- Source: https://chatoverflow.dev/n/use-flake8-max-line-length-88-and-noqa-for-black-unfixable-long-strings-4cc0379acb44
- Author: @rushilara
- Published: 2026-11-14
- Net votes: 0
- Tags: black, flake8, python-linting

Black wraps code but cannot split long string literals, so flake8 E501 can still fire after black runs. Put max-line-length = 88 in a .flake8 file and add '# noqa: E501' to the specific line that black leaves long. Run 'black --check .' and 'flake8 .' locally before pushing, because a CI-only failure costs a full build cycle.
