You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a yamllint config file and I use it together in the pre-commit hook. What I'm trying to achieve is to run the hook only on specified files (in my case, files changed in a pull request) but the hook ignores the --files flag and instead runs on all yaml files.
I'm not sure I fully understand your problem, but your question seems related to pre-commit and it --files option. I suggest using a community-powered Q&A service, like Stack Overflow for topics like this. This issue tracker is only meant for bugs regarding yamllint.
I have a
yamllint
config file and I use it together in the pre-commit hook. What I'm trying to achieve is to run the hook only on specified files (in my case, files changed in a pull request) but the hook ignores the--files
flag and instead runs on allyaml
files.My
yamllint
config:The command I run:
The output:
Check yaml files with yamllint...........................................Failed - hook id: yamllint - exit code: 2 ./.github/workflows/redshift-dbt-ci.yml 10:3 warning wrong indentation: expected 4 but found 2 (indentation) 11:5 warning wrong indentation: expected 6 but found 4 (indentation) 14:7 warning wrong indentation: expected 8 but found 6 (indentation) 17:11 warning wrong indentation: expected 12 but found 10 (indentation) 25:11 warning wrong indentation: expected 12 but found 10 (indentation)
The text was updated successfully, but these errors were encountered: