You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The external python style guide says indentation should be 4 spaces:
3.4 Indentation
Indent your code blocks with 4 spaces.
The style guide also provides an pylintrc file:
2.1 Lint
Run pylint over your code using this [pylintrc](https://google.github.io/styleguide/pylintrc).
While in the pylintrc file, following configuration sets indentation to 2 spaces:
# String used as indentation unit. The internal Google style guide mandates 2
# spaces. Google's externaly-published style guide says 4, consistent with
# PEP 8. Here, we use 2 spaces, for conformity with many open-sourced Google
# projects (like TensorFlow).
indent-string=' '
So which indentation should we use?
The text was updated successfully, but these errors were encountered:
The external python style guide says indentation should be 4 spaces:
The style guide also provides an pylintrc file:
While in the pylintrc file, following configuration sets indentation to 2 spaces:
So which indentation should we use?
The text was updated successfully, but these errors were encountered: