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

Minor pre-commit-config change #1703

Merged
merged 5 commits into from
Feb 24, 2025
Merged

Minor pre-commit-config change #1703

merged 5 commits into from
Feb 24, 2025

Conversation

nyurik
Copy link
Member

@nyurik nyurik commented Feb 24, 2025

No description provided.

- id: check-toml
- id: check-yaml
- id: check-added-large-files
args: [ --allow-multiple-documents, --unsafe ]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

--unsafe
Instead of loading the files, simply parse them for syntax. A syntax-only check enables extensions and unsafe constructs which would otherwise be forbidden. Using this option removes all guarantees of portability to other yaml implementations. Implies --allow-multiple-documents

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy paste, i guess we don't need it, thx

@nyurik nyurik merged commit cf046d3 into maplibre:main Feb 24, 2025
12 checks passed
@nyurik nyurik deleted the lints branch February 24, 2025 18:10
CommanderStorm added a commit to alamminsalo/martin that referenced this pull request Mar 1, 2025
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