bank-of-anthos
bank-of-anthos copied to clipboard
Pylint - switch to Google style guide
Current we have a pylint file - https://github.com/GoogleCloudPlatform/bank-of-anthos/blob/master/.pylintrc - that ignores certain pylint errors in the Python service source code.
Let's try to remove most of these ignores to get the most out of linting, using Google's python style guide as source material for what messages might be okay to ignore.
This is still planned in the long term.
Still want to do this.
@glasnt also suggested considering black
as an alternative to pylint
.
python-docs-samples uses flake8
(to conform to the styleguide) and black
is optional (docs). The flake8
config in noxfile.py should be useful here.
pyink
is a fork of black
under the Google org and may be an alternate to black
https://github.com/google/pyink
isort
tool can also be used to sort imports https://github.com/PyCQA/isort
The work on this item is postponed to Q4'24