[Housekeeping] Formatting all code with black
See original GitHub issueHi all, Cosimo and me would like to format all code with https://github.com/psf/black to unify style and automate the boring tasks of fitting your code into the surrounding style. This would also include a CI lint check to make sure the black style is adhered to for any incoming code.
Two known difficulties:
- Existing PRs may need to be rebased on top of the newly formatted code.
- Making
git blame
work as before requires an extra step: https://github.com/psf/black#migrating-your-code-style-without-ruining-git-blame
Thoughts?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:15 (10 by maintainers)
Top Results From Across the Web
How to Auto-Format Your Python Code with Black
Black is a tool that allows you to identify errors and format your python code at the same time. Thus it makes you...
Read more >Python code formatting using Black - GeeksforGeeks
It is very simple to use black. Run the below command in the terminal. ... This will reformat your code using the Black...
Read more >What Is Amazon Warehouse? Where to Find The Best Deals ...
All about Amazon Warehouse, where you can find the best deals and never pay full price. ... Here's How to Save Even More...
Read more >SEC. 91.8116. SPECIAL PROVISIONS FOR LIGHT ...
12/27/19.) Light-housekeeping rooms shall contain not less than 150 square feet in area and shall be occupied by not more than two people....
Read more >Limit by - Everett Public Library
KW ALL "astronauts" AND AU ALL "adamson". Find: Any Field, Title, Author, Subject, Publisher, Series, ISBN. Keyword (ALL), Keyword (ANY), Phrase (ADJ) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, fair enough. And as a side effect we’ll lose all tabs, yes? That’d be worth a party.
I’m going through the old ones and clearing them up is also a very important housekeeping task. They’re mostly stale already 😦.