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

Autoformat CSV files #180

Merged
merged 5 commits into from May 21, 2024
Merged

Autoformat CSV files #180

merged 5 commits into from May 21, 2024

Conversation

jonafato
Copy link
Collaborator

@jonafato jonafato commented May 6, 2023

Autoformat CSV files to ensure that

  • Event rows are sorted properly
  • Fields do not contain extraneous spaces before or after data
  • Files contain the expected newlines at the end

This branch also applies the formatting to the existing CSV files, which resulted in some rows being resorted to match the sorting intent that has been followed in most changes.


This change is not yet complete. I'd like to include a GitHub Actions task that runs this formatter on PRs and commits the changes back, which will require GitHub App authentication in order to allow the automated commits to trigger other GHA workflows.

jonafato and others added 5 commits May 6, 2023 12:37
Autoformat CSV files to ensure that

- Event rows are sorted properly
- Fields do not contain extraneous spaces before or after data
- Files contain the expected newlines at the end
@invisibleroads invisibleroads merged commit 35c67b3 into main May 21, 2024
1 check failed
@invisibleroads invisibleroads deleted the autoformatting branch May 21, 2024 15:30
@jonafato
Copy link
Collaborator Author

It looks like this has broken something and should be reverted until it can be fixed. I thought I opened this as a draft PR, but if it was marked ready to review / merge, that was my fault. GitHub can be weird about pushing commits from CI and allowing validators to still run, so this may need to be debugged from that configuration standpoint.

@invisibleroads
Copy link
Member

I was able to get this working by separating the pull request validation from the commit push formatting (see https://github.com/invisibleroads/github-actions-experiments).

Thanks so much for the original github action workflows. It took some getting used to but I think I understand it now. Sorry about the workflow failed notifications spam.

Hope you're well.

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.

None yet

2 participants