Run automated fixes on Pull Request #220
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow-up to #217 . If this is accepted, the next step would be to sign-in on https://pre-commit.ci/ and connect it to this repo. (it's the CI autofixes version of https://pre-commit.com) .
Added autoformatting and basic linting fixes for YAML, JSON, Markdown and Python files.
As well as autofixes for mixed-line-ending, case-conflict trailing whitespaces and end-of-file newline.
You can run locally using:
pip install pre-commit
to installpre-commit run
to runYou can run on all files using
pre-commit run --all-files
(see #221 for an initial run on all files)Devs who enjoy pre-commit git hooks (I don't, some do), can also now use this as a pre-commit hook on their own accord using
pre-commit install
Example run:
![image](https://private-user-images.githubusercontent.com/1350584/298711015-923b80ac-0083-4e10-a1cd-00e135e1874a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTMyNzQsIm5iZiI6MTcyMTgxMjk3NCwicGF0aCI6Ii8xMzUwNTg0LzI5ODcxMTAxNS05MjNiODBhYy0wMDgzLTRlMTAtYTFjZC0wMGUxMzVlMTg3NGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjRUMDkyMjU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTkxZjY4YzRmZWU2NjAyYTQ3OGFmMmViNDQ1MzkzNDBjYTFjMzQ1OTMwNTMyZmUxMDAwNWViN2Q3Y2QyYTgxMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.6RRpsU3z7jaTZEMhpU7WmtnTTtfaHZwIcIrkWEHG1E4)