fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.6k stars 148 forks source link

Clean code to match Python coding style #482

Closed hongquan closed 4 years ago

hongquan commented 5 years ago

Describe the bug

Currently, many parts of our code don't follow Python coding style. Now, please clean it. Please also group and arrange the import lines.

Objective

Tools

This work doesn't need much brain. So we should leave it for tools. I recommend pycodestyle, pyflakes. They help you find problematic lines, but not fix for you. Other than that, please install appropriate plugins to your code editor to integrate the tools.

This is how you can do in VS Code:

{
    "python.linting.flake8Enabled": true,
    "files.trimTrailingWhitespace": true,
    "files.insertFinalNewline": true,
    "files.trimFinalNewlines": true
}
bhadreshpsavani commented 4 years ago

May i work on this issue?

norbusan commented 4 years ago

@bhadreshpsavani sure enough, go ahead and send PR

kiritka-jain commented 4 years ago

it's been a while, @norbusan @stealthanthrax May I work on this ?

norbusan commented 4 years ago

Everyone can work on that, just do it and send PRs...