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

Code formatting #1769

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Code formatting #1769

wants to merge 4 commits into from

Conversation

poodlewars
Copy link
Collaborator

@poodlewars poodlewars commented Aug 16, 2024

Enforce code formatting with Black and clang-format. See the linting.md file I added in docs/ for notes on usage and changes from the default settings.

No changes to default Black formatting.

clang-format file is generated from

clang-format -style=llvm -dump-config > .clang-format

This PR doesn't actually reformat the codebase yet, except on a couple of example files. I'll do that as a last step once we're happy with the approach. This PR shows the effect though #1822 . Its CI shows that the linting checks pass after the reformatting.

d85c3aa shows the effect of the reformatting on a couple of files.

@poodlewars poodlewars force-pushed the code-formatting branch 4 times, most recently from 7af65df to 3a033b3 Compare August 16, 2024 12:53
as the order is semantically important
@poodlewars poodlewars marked this pull request as ready for review August 16, 2024 14:10
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.

3 participants