Make the flake8 and black settings consistent#662
Conversation
| # black project prefers pyproject.toml | ||
| # that's why we have this file in addition to other setting files | ||
| [tool.black] | ||
| line-length = 125 No newline at end of file |
There was a problem hiding this comment.
This is the key change in this PR. With having this file, running black command always respects this configuration
Codecov Report
@@ Coverage Diff @@
## main #662 +/- ##
=======================================
Coverage 92.05% 92.05%
=======================================
Files 172 172
Lines 5864 5864
=======================================
Hits 5398 5398
Misses 466 466
Continue to review full report at Codecov.
|
|
The longer line length will be nice! Will you be adding a |
|
@eddyg Thanks for the great suggestion! I've added the commit. As for the past changes (and future ones), we can add them as necessary. |
This pull request changes the black (code formatter) settings to be consistent with flake8. Currently, the max line length is 125 for flake8 validation while we use 88 for auto code formatting by black (= the default setting).
This was due to the lack of consideration when we set up those tools in this project (we borrowed the ones from https://github.com/slackapi/python-slack-sdk, so that I am going to apply the same change to the repo too).
Category (place an
xin each of the[ ])slack_bolt.Appand/or its core componentsslack_bolt.async_app.AsyncAppand/or its core componentsslack_bolt.adapter/docsRequirements (place an
xin each[ ])Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
./scripts/install_all_and_run_tests.shafter making the changes.