Style checks, broken CSV rows and minified code hiding in a source file all show up as lines that are much longer than the rest. awk can find them across a whole set of files.
awk 'length > 120 {print FILENAME ":" FNR ": " length}' *.py
length without parentheses is the length of the current line. FILENAME is the file being read and FNR the line number within that file, so you get output like app.py:42: 131, the same shape that editors and grep use.
To see the single longest line of a file, I’d keep track of the maximum:
awk 'length > max {max = length; line = FNR} END {print line, max}' data.csv
A note on what length counts. gawk counts characters if your locale is UTF-8, so an accented letter counts as one. mawk and some other awks count bytes, which makes lines with emoji or accents look longer than they are. For ASCII text that difference doesn’t exist.
Tabs count as one character too, though an editor may show them as four or eight columns. And on standard input, FILENAME is empty in some awks and - in others, depending on the implementation.
Further reading: GNU awk manual, POSIX awk specification