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

Add pass_filenames: false to pre-commit config #40

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

ConorMacBride
Copy link
Member

Previously, pre-commit was running multiple times in batches including all the files in the repo (6 batches with 4 files each). This was resulting in simultaneous reads of the same workflow file, which seemed to cause an empty file to be read randomly.

This updates the config to not pass the filenames and therefore only run once. I have tested this locally and the random failures no longer occur. (Maybe it'll also fix the issue with the auto-fix command not committing the fix.)

Previously, pre-commit was running multiple times in batches including all the files in the repo (6 batches with 4 files each). This was resulting in simultaneous reads of the same workflow file, which seemed to cause an empty file to be read randomly.

This updates the config to not pass the filenames and therefore only run once. I have tested this locally and the random failures no longer occur. (Maybe it'll also fix the issue with the auto-fix command not committing the fix.)
@Cadair Cadair merged commit e237bdd into OpenAstronomy:main Apr 12, 2022
@ConorMacBride ConorMacBride deleted the fix-pre-commit branch April 12, 2022 09:01
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