How to configure pycodestyle in Google App Store Cloud Shell

342 Views Asked by At

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

1

There are 1 best solutions below

1
On

Yes, it's possible.

You could add a ~/.config/pycodestyle file with something like:

[pycodestyle]
max-line-length = 100

There are other options, too, see Configuration.