python-jsonschema / check-jsonschema

A CLI and set of pre-commit hooks for jsonschema validation with built-in support for GitHub Workflows, Renovate, Azure Pipelines, and more!
https://check-jsonschema.readthedocs.io/en/stable
Other
207 stars 40 forks source link

Support verbose output in pre-commit hook #322

Closed rpdelaney closed 1 year ago

rpdelaney commented 1 year ago

In pre-commit I got an error followed by this:

  1 other errors were produced. Use '--verbose' to see all errors.

I'd like to have an option to print all the errors immediately so I can get started on fixing them without having to enter more commands.

sirosen commented 1 year ago

You can update your .pre-commit-config.yaml to have

- repo: https://github.com/python-jsonschema/check-jsonschema
  rev: 0.26.3
  hooks:
    - id: whatever-hook-you-are-using-here-this-is-just-a-made-up-string
      args: ["--verbose"]  # or "-v" if you want it to be shorter

Does that not address your needs?

rpdelaney commented 1 year ago

Yes! Thank you!