You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No NOQA added to long line with as import for multi_line_output = 7 #2093
With force_single_line = true and multi_line_output = 7, single-import lines that are too long should receive a # NOQA comment (unless there's one already). This doesn't work for as imports (though at least existing # NOQAs are retained).
Activity
Fix NOQA not added to long imports in several output paths
Fix NOQA not added to long imports in several output paths
Eljees commentedon Sep 24, 2026
This looks fixed on
main(f00e0919). With the input from the report and--profile black --force-single-line-imports --multi-line 7:The
asimport now gets its# NOQA, and the line that already had one keeps a single one, which is the expected output in the report.Fix combine_straight_imports mixing up module names on long lines