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

Automatic formatting using black #38

Merged
merged 5 commits into from
Jun 3, 2024
Merged

Automatic formatting using black #38

merged 5 commits into from
Jun 3, 2024

Conversation

aecio
Copy link
Member

@aecio aecio commented May 24, 2024

This PR configures a Github action to check if the code is properly formatted using Black. The CI will fail if the code is not properly formatted.

Make sure you have black installed:

pip install black

To format the code, anyone can use the command before committing your changes:

make format

Or you can use Black directly:

black ./bdikit/

You may also use Black through a VSCode extension to format files individually as you code: https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter

@aecio aecio marked this pull request as ready for review May 28, 2024 18:58
@aecio aecio merged commit 84dd3b5 into devel Jun 3, 2024
10 checks passed
@aecio aecio deleted the automatic-formatter branch June 3, 2024 21:09
aecio added a commit that referenced this pull request Jul 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants