How can I check for spelling errors in Python code?...
- Check spelling in all strings delineated with double quotes (
"
) or single quotes ('
). - Check spelling in all comment lines (lines that start with a
#
symbol).
Of course, I expect false-positives, since not all quote delineated strings or code comments always have English words.
However, the important thing is that the spell checker should ignore actual lines of code, and report results only for items 1 and 2 above.
(By the way, I use gedit as my IDE).
gedit
but AFAIK it spell checks everything.