Skip to content

Question: feasibility of Black-formatting the code in this repo? #222

Open
@ehrenfeu

Description

@ehrenfeu

Hi all,

this is "just" a request of your feelings in regards of running the Black formatter on the Python files in this repo?

We've been using it for some years now on our code and really like the benefits (particularly having very readable code and minimal diffs, independently of who's coding). Many recent development tools (VS Code, PyCharm, ...) are offering an integration for it, meaning they will also run the formatter whenever a file is being saved.

Having the scripts formatted by Black would IMHO facilitate interaction quite a bit (e.g. currently I would always have to explicitly ask VS Code to save the file without running the formatter in order to prevent it from producing a ton of changes). I'm even tempted to say this would make it more attractive for potential contributors, but that's obviously my very personal and strongly biased opinion 😁 😉

Now, obviously, I could just do this and file a PR - however, this would trick git and Github into believing that I am a major contributor to this repo as all the (black) changed lines would be attributed to my account. Therefore, even if you were positive about my suggestion / question, I would prefer someone else from the actual contributors to perform the change.

Happy to hear about your opinion. And just to be clear, a plain "no 🙅🏼‍♂️ we don't want this" is obviously fully acceptable!

Cheers,
Niko

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions