question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Housekeeping] Formatting all code with black

See original GitHub issue

Hi 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:

  1. Existing PRs may need to be rebased on top of the newly formatted code.
  2. 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:open
  • Created 2 years ago
  • Reactions:2
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
justvanrossumcommented, Mar 22, 2021

Ok, fair enough. And as a side effect we’ll lose all tabs, yes? That’d be worth a party.

2reactions
behdadcommented, Aug 16, 2022

I mean, PRs will keep coming forever I suppose and there are very old ones.

I’m going through the old ones and clearing them up is also a very important housekeeping task. They’re mostly stale already 😦.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found