Repository navigation
Conversation
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
|
|
||
| ## linting | ||
|
|
||
| All python code is linted using flake8 |
There was a problem hiding this comment.
add some instructions with/out bazel pointing to config file
|
im thinking about other possible style hints we might want - prefer |
|
re mypy the biggest issue that it introduces is py version. we are currently pegged to more recent versions of python - esp 3.9 have increasingly better lang-level support for some of the type hinting older versions of python require use of the |
|
|
||
| ``` | ||
|
|
||
| In this example the line split occurs before the `and` and `or` which are placed at the |
There was a problem hiding this comment.
Will this be lintable? I'd like this not to be a subject of code reviews :) FWIW this is the kind of thing that clang-format does well at.
|
|
||
| ## pep8 | ||
|
|
||
| All python code should meet the pep8/pycodestyle standard. |
|
@phlax I like the idea of preferring f-strings (and other Python 3+ isms). |
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Signed-off-by: Ryan Northey [email protected]
Commit Message: styles: Update style guide
Additional Description:
i have changed the focus of this as we will also need to update info for:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] Partial fix for #15403 , ref #15479
[Optional Deprecated:]
[Optional API Considerations:]