Yesterday my python scripts in Google Cloud Shell started to include the following pycodestyle warnings about the length of the lines:
[pycodestyle] E501 line too long (85 > 79 characters)
Whilst some of the warnings/comments were useful some were just annoying, I would like to be able to configure the warnings, e.g. extend the acceptable length to be longer than 79 characters. Is it possible to include a setup.cfg, or similar, to configure these warnings, and where would it need to go in the Cloud Shell directory structure ?
Thanks, Chris
Yes, it's possible.
You could add a
~/.config/pycodestyle
file with something like:There are other options, too, see Configuration.