Auto-formatter to keep the same coding style#20356
Conversation
|
Hey @mozga-intel , Thanks for submitting the PR
CI supported jobs: [miscellaneous, centos-gpu, website, clang, unix-gpu, windows-gpu, sanity, unix-cpu, edge, windows-cpu, centos-cpu] Note: |
|
@mxnet-bot run ci [unix-cpu, centos-cpu, unix-gpu] |
|
Jenkins CI successfully triggered : [centos-cpu, unix-gpu, unix-cpu] |
|
@mxnet-bot run ci [unix-cpu, centos-cpu, unix-gpu] |
|
Jenkins CI successfully triggered : [centos-cpu, unix-cpu, unix-gpu] |
6884eba to
69ca096
Compare
|
@mxnet-bot run ci [centos-gpu, unix-cpu, unix-gpu] |
|
Jenkins CI successfully triggered : [unix-cpu, unix-gpu, centos-gpu] |
|
@mxnet-bot run ci [windows-cpu , windows-gpu, unix-cpu] |
|
Jenkins CI successfully triggered : [windows-gpu, unix-cpu, windows-cpu] |
|
Thanks for putting in the work for formatting the code for consistency. In order to keep the code nicely formatted, I think it would be worthwhile to automate the formatting and style checking. Do you have suggestions or plan in that regard? |
|
@szha Thanks for a quick answer! PropositionPythonFor a python, we can try to use the Flake8 tool. This tool might be used to perform additional formatting and semantic checking of code. For our machine, we can use hooks or pre-commit tools to run checker before commit. Please have a look at #20429 (proposition C++We can use the clang-format tool to perform additional formatting and semantic checking of code. Please have a look at #20433 ProblemI think that we need to run those scripts to get the same standard in the project. Further considerationShould these tools be run also on a CI? |
|
In the last commit what are the changes something in .clang-format config? |
|
@sfraczek Yes, please have a look at the description: a few things were added such as BinPackArguments/Params... |
|
@mxnet-bot run ci [unix-gpu] |
|
Jenkins CI successfully triggered : [unix-gpu] |
Description
This pull-request contains changes associated with a coding style.
Contains:
.clang-format file:
Checklist
Essentials
Changes
Comments