You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[#3206]improvement(client-python): Add Black for client-python (#3254) (#3325)
### What changes were proposed in this pull request?
* Add Black as code formatter, it enforce the coding style with
1. trailing commas and whitespaces
2. unified quotation marks(")
3. new lines
4. max line length
5. indents
* Aligned with Pylint Rules
* Add Black into Gradle and form a code formatting pipeline (pipInstall
-> Black -> Pylint), this pipeline will run implicitly in `build` and
`test` gradle tasks.
> Note that Black still can't format long entire string exceeding `max
line length` without enabling unstable features, please handle long
strings with caution and make Pylint to ignore them if they are really
necessary.
### Why are the changes needed?
Fix: #3206, #3203
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
No
Co-authored-by: TimWang <tim.wang@pranaq.com>
0 commit comments