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
Feature request : add a "fail fast" configuration entry #240
Comments
The main benefit to running all of the hooks is for fixers. That said, this seems like a reasonable idea. The unfortunate bit is there isn't a good place to put it in .pre-commit-config.yaml without breaking the schema :S |
Agreed. |
Oh I imagined we would want a top level all-or-nothing option instead of having to repeat it in every hook. The breaking change I was thinking of was changing the config to be a map instead of a list (Which would enable a bunch of other things I've wanted to do). Apis are hard. And yeah I'm planning on ditching JSON schema. if we're just adding a property to hooks it's probably not breaking (we've done it in the past) |
Ok, I imagined on my part that we could have something like this:
(The repetition of the same config property is just here to show a possible edge case, and because I lack imagination :D) |
I'd rather have a format that looks like this, though migration will be somewhat difficult: fail-fast: true
repos:
- repo: local
hooks:
- id: ...
... |
This will be available in 1.1.0 (once released) -- I plan to also throw in a couple other things as well into this release. The format for failing fast is: fail_fast: true
repos:
- ... as such it is only available with the v2 configuration introduced in 1.0.0 |
Awesome, thanks ! |
This is now available in v1.1.0! Thanks again for the issue! |
…orce Fix mixed-line-endings --fix=... when whole file is a different ending
Here is my use case:
eslint
checks), I don't want to execute my integration tests until I've fixed those errorsBtw, I don't ask to change the current behaviour, but could you develop on the reasons behind the design decision to run all tests, indifferently of their outcome ? What are the benefits ?
The text was updated successfully, but these errors were encountered: