Skip to content
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

feat: ordering in hooks. #533

Merged
merged 2 commits into from
Dec 14, 2024
Merged

Conversation

rsrohitsingh682
Copy link
Contributor

resolves #250

@domenkozar
Copy link
Member

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

@rsrohitsingh682 rsrohitsingh682 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
@rsrohitsingh682 rsrohitsingh682 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