PyCQA/flake8-bugbear

`B950` ignores `max-doc-length` flake8 configuration option

Aperta

#285 aperta il 18 set 2022

 (3 commenti) (0 reazioni) (0 assegnatari)Python (116 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (1116 stelle)
Metriche merge PR
 (Merge medio 4h 17m) (3 PR mergiate in 30 g)

Descrizione

flake8 has a configuration option max-doc-length, which configures the maximum line length for docstrings. flake8-bugbear currently ignores this setting. It makes sense to limit line length of code to ~80-88 for smaller screen sizes, diffs etc. Especially within tests though, limiting docstring line length to the same value can cause very awkward docstring formatting, severely limiting readability.

Guida contributor