Skip to content

feat: ordering in hooks.#533

Merged
domenkozar merged 2 commits intocachix:masterfrom
sinrohit:add-priority
Dec 14, 2024
Merged

feat: ordering in hooks.#533
domenkozar merged 2 commits intocachix:masterfrom
sinrohit:add-priority

Conversation

@sinrohit
Copy link
Copy Markdown
Contributor

resolves #250

@domenkozar
Copy link
Copy Markdown
Member

I'd very much prefer before/after solution of topological ordering. There's already examples of this in NixOS for inspiration!

@sinrohit sinrohit changed the title feat: add priority to hooks. feat: ordering in hooks. Dec 14, 2024
@domenkozar domenkozar merged commit c2b3567 into cachix:master Dec 14, 2024
@sinrohit sinrohit deleted the add-priority branch December 14, 2024 20:40
sandydoo added a commit that referenced this pull request Dec 15, 2024
Consolidates previous work from #533 and #536.

- Removes `before` and `after` from the `raw` config. These are not valid
  pre-commit configuration options and should not be here.
- Removes code to filter out `before` and `after` from the `raw` config.
  There's nothing to filter out if they're not in the config in the
  first place.
- Set `id` to the attr name of the hook, instead of the `name`. This
  corrects a mistake made in the module transition (#397). Technically,
  a breaking change, but we haven't had feedback from the initial
  mistake.
- Expose `id` in options.
sandydoo added a commit that referenced this pull request Dec 15, 2024
Consolidates previous work from #533 and #536.

- Removes `before` and `after` from the `raw` config. These are not valid
  pre-commit configuration options and should not be here.
- Removes code to filter out `before` and `after` from the `raw` config.
  There's nothing to filter out if they're not in the config in the
  first place.
- Set `id` to the attr name of the hook, instead of the `name`. This
  corrects a mistake made in the module transition (#397). Technically,
  a breaking change, but we haven't had feedback from the initial
  mistake.
- Expose `id` in options.
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.

Hook order ignored

2 participants