Kami commented on issue #1623:
URL: https://github.com/apache/libcloud/issues/1623#issuecomment-978371898


   Alright, #1624 has been merged and that includes more reasonable 100 
character long line length.
   
   Hopefully people won't have too many issues syncing their forks with the 
latest trunk version.
   
   The best workflow probably is to run black with the same config as trunk 
uses on your local fork / changes, commit the change and then merge / pull in 
in latest upstream trunk - this should make addressing any conflicts easier.
   
   So something along those lines:
   
   ```bash
   # Run this inside the directory of your fork
   wget https://raw.githubusercontent.com/apache/libcloud/trunk/pyproject.toml
   # NOTE: It's important that the same version of black is used
   pip install "black==21.10b0"
   black --config pyproject.toml libcloud/
   black --config pyproject.toml docs/examples/
   black --config pyproject.toml demos/
   black --config pyproject.toml contrib/
   black --config pyproject.toml pylint_plugins/
   git commit -am "Reformat code with black".
   rm pyproject.yoml
   git pull upstream trunk
   ```
   
   I will add comment with similar instructions to all the open PRs when I get 
a chance to write it up.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to