Re: [PR] checkpatch.sh: add -x option to auto-format Python files. [nuttx]

2025-07-04 Thread via GitHub
zhongzhijie1 commented on PR #16650: URL: https://github.com/apache/nuttx/pull/16650#issuecomment-3038317515 @jerpelea hello -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment.

Re: [PR] checkpatch.sh: add -x option to auto-format Python files. [nuttx]

2025-07-02 Thread via GitHub
zhongzhijie1 commented on code in PR #16650: URL: https://github.com/apache/nuttx/pull/16650#discussion_r2179424633 ## tools/checkpatch.sh: ## @@ -93,6 +94,24 @@ is_cmake_file() { fi } +format_file() { + if [ ${@##*.} == 'py' ]; then Review Comment: thanks, commit in

Re: [PR] checkpatch.sh: add -x option to auto-format Python files. [nuttx]

2025-07-02 Thread via GitHub
simbit18 commented on code in PR #16650: URL: https://github.com/apache/nuttx/pull/16650#discussion_r2179331724 ## tools/checkpatch.sh: ## @@ -93,6 +94,24 @@ is_cmake_file() { fi } +format_file() { + if [ ${@##*.} == 'py' ]; then Review Comment: Maybe better to use

[PR] checkpatch.sh: add -x option to auto-format Python files. [nuttx]

2025-06-30 Thread via GitHub
zhongzhijie1 opened a new pull request, #16650: URL: https://github.com/apache/nuttx/pull/16650 Currently only .py files are supported. Non-Python files will report "format not implemented". Signed-off-by: zhongzhijie1 -- This is an automated message from the Apache Git Service. T