Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black as standard code formatter #51

Open
zRafaF opened this issue Oct 15, 2024 · 0 comments
Open

Black as standard code formatter #51

zRafaF opened this issue Oct 15, 2024 · 0 comments

Comments

@zRafaF
Copy link

zRafaF commented Oct 15, 2024

How we are today

Currently the code base has no standard formatting options, nor text editor config files

Proposed Enhancement

Addition of a formatter to the standard of code, such as Black, this formatter can also be added to run in an action when merging code to main. This way the whole code base will have a nicer and even look to it, making it easier to do code reviews.

Implementation

Install black and run a recursive formatting script such as:

pip install black

python -m black .

Extras

  • Add an automatic action to the workflows.
  • Add the formatter settings to .vscode/settings.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant