Repository navigation
python: Use pythonic casing for variable names - #15479
Conversation
Signed-off-by: Ryan Northey <[email protected]>
|
I worry that without machine checking the code will drift very shortly after the PR lands. Where did we end up on using |
this does machine checking for what it changes ill comment inline... |
|
so re black its the step we can consider after we have got the code linted i think my biggest objection to black is what you might call "more than one way to skin a cat" ie - if we were to just run black it would make for almost as unreadable code as we have now my current plan re linting is to do the following:
this PR is the first step |
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
htuch
left a comment
There was a problem hiding this comment.
@phlax high-level ask before going through this in detail, can you specify in https://github.com/envoyproxy/envoy/blob/main/STYLE.md#google-style-guides-for-other-languages what the exact specializations of the Google Python style guide are? How does this interact with pep8? Etc.
It would be helpful document explicitly anything that is optional and that we're making opinionated decisions on and ideally make it easy for new Python devs to be able to achieve consistent style without having to read a ton. Anything you can do to that end would be appreciated.
i will open a PR to update the style guide separately as this PR will not do everything and i guess we dont want to update the style guide incrementally as each PR lands |
Signed-off-by: Ryan Northey <[email protected]>
|
style guide PR added here #15507 |
Signed-off-by: Ryan Northey <[email protected]>
|
@phlax needs main merge. |
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
|
/retest |
|
Retrying Azure Pipelines: |
Signed-off-by: Ryan Northey [email protected]
Commit Message: python: Use pythonic casing for variable names
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] Partial fix for #15403
[Optional Deprecated:]
[Optional API Considerations:]