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
The configuration is written in pre_commit.yml, with additional yaml checks.
However, when I try to commit a yaml file (pre_commit.yml), which should be fine in syntax, I get an error.
Below is the pre_commit.yml and the error message.
pre_commit.yml
:checks_add:- :rubocop- :yaml
~/.rbenv/versions/3.1.0/lib/ruby/3.1.0/psych.rb:323:in `safe_load': wrong number of arguments (given 5, expected 1) (ArgumentError) from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/plugins/pre_commit/checks/yaml.rb:40:in `safe_load_file' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/plugins/pre_commit/checks/yaml.rb:30:in `load_file' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/plugins/pre_commit/checks/yaml.rb:21:in `block in call' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/plugins/pre_commit/checks/yaml.rb:21:in `map' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/plugins/pre_commit/checks/yaml.rb:21:in `call' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/pre-commit/runner.rb:47:in `block (2 levels) in execute' from ~/.rbenv/versions/3.1.0/lib/ruby/3.1.0/benchmark.rb:311:in `realtime' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/pre-commit/runner.rb:46:in `block in execute' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/pre-commit/runner.rb:43:in `map' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/pre-commit/runner.rb:43:in `execute' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/pre-commit/runner.rb:31:in `run_single' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/pre-commit/runner.rb:26:in `run' from ~/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/pre-commit-0.39.0/lib/pre-commit.rb:24:in `run' from -e:11:in `<main>'
The text was updated successfully, but these errors were encountered:
The configuration is written in
pre_commit.yml
, with additional yaml checks.However, when I try to commit a yaml file (
pre_commit.yml
), which should be fine in syntax, I get an error.Below is the pre_commit.yml and the error message.
pre_commit.yml
The text was updated successfully, but these errors were encountered: