pylint: How to ignore max line length limit for long import statements
Is there any convenient way to ignore max line length limit for import statements, such as by setting rc file? pylint always report: C0301:Line too long (108/100). But according to Google Style Guidehttps://github.com/google/styleguide/blob/gh-pages/pyguide.md#32-line-length, it's fine to not limit line length for long import statements. Thanks! JIongjiong Li
Hey, On Sat, Aug 11, 2018 at 05:46:56AM +0000, Jiongjiong Li wrote:
Is there any convenient way to ignore max line length limit for import statements, such as by setting rc file?
pylint always report: C0301:Line too long (108/100).
But according to [1]Google Style Guide, it's fine to not limit line length for long import statements.
There's a --ignore-long-lines (under [format] if in .pylintrc) option which allows you to define a regex for that. Something like ignore-long-lines=^import should probably help. Florian -- https://www.qutebrowser.org | me@the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/
participants (2)
-
Florian Bruhin
-
Jiongjiong Li