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

pre-commit: set pass_filenames to true #260

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Conversation

thiagowfx
Copy link
Contributor

#258 added pre-commit support to Yamale, with pass_filenames: false, as only one path is supported at a time.

#251 added support for multiple paths.

Therefore now it is possible to use pass_filenames: true with pre-commit.

Sample run (filenames redacted):

% pre-commit run --all-files yamale-schema-verify --verbose
check yaml schema with Yamale............................................Passed
- hook id: yamale-schema-verify
- duration: 0.12s

Validating file1.yaml...
Validating file2.yaml...
Validating file3.yaml...
Validating file4.yaml...
Validation success! 👍
[...]

#258 added pre-commit support to Yamale, with `pass_filenames: false`, as only one path is supported at a time.

#251 added support for multiple paths.

Therefore now it is possible to use `pass_filenames: true` with pre-commit.

Sample run (filenames redacted):

```
% pre-commit run --all-files yamale-schema-verify --verbose
check yaml schema with Yamale............................................Passed
- hook id: yamale-schema-verify
- duration: 0.12s

Validating file1.yaml...
Validating file2.yaml...
Validating file3.yaml...
Validating file4.yaml...
Validation success! 👍
[...]
```
@thiagowfx
Copy link
Contributor Author

Curious to hear if @rsrdesarrollo agrees before merging this.

@rsrdesarrollo
Copy link
Contributor

that's perfect thanks!!

@cblakkan cblakkan merged commit 8a09315 into 23andMe:master Dec 30, 2024
4 checks passed
@thiagowfx thiagowfx deleted the patch-1 branch December 30, 2024 19:42
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