feat: introduce concept of pipelines for better concurrency #30

Merged
brianmcgee merged 6 commits from feat/concurrency-refactor into main 2024-04-26 09:36:36 +00:00
Member

Replaces the Before config option with optional pipeline and priority keys.

This is used to group formatters together in the order in which they are specified within the config file.

[formatter.alejandra]
command = "alejandra"
includes = ["*.nix"]
# Act as an example on how to exclude specific files
excludes = ["examples/nix/sources.nix"]
pipeline = "nix"
priority = 1

[formatter.deadnix]
command = "deadnix"
includes = ["*.nix"]
pipeline = "nix"
priority = 2

Signed-off-by: Brian McGee brian@bmcgee.ie

Replaces the `Before` config option with optional `pipeline` and `priority` keys. This is used to group formatters together in the order in which they are specified within the config file. ```yaml [formatter.alejandra] command = "alejandra" includes = ["*.nix"] # Act as an example on how to exclude specific files excludes = ["examples/nix/sources.nix"] pipeline = "nix" priority = 1 [formatter.deadnix] command = "deadnix" includes = ["*.nix"] pipeline = "nix" priority = 2 ``` Signed-off-by: Brian McGee <brian@bmcgee.ie>
brianmcgee added 1 commit 2024-04-24 15:34:53 +00:00
Replaces the `Before` config option with an optional `Pipeline` key.

This is used to group formatters together in the order in which they are specified within the config file.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
brianmcgee requested review from zimbatm 2024-04-24 15:34:58 +00:00
brianmcgee added 2 commits 2024-04-25 08:38:47 +00:00
Signed-off-by: Brian McGee <brian@bmcgee.ie>
Allows for fine-grained control of execution order.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
brianmcgee changed title from feat: introduce concept of pipelines for better concurrency to WIP: feat: introduce concept of pipelines for better concurrency 2024-04-25 08:52:37 +00:00
brianmcgee added 1 commit 2024-04-25 11:16:09 +00:00
Signed-off-by: Brian McGee <brian@bmcgee.ie>
brianmcgee changed title from WIP: feat: introduce concept of pipelines for better concurrency to feat: introduce concept of pipelines for better concurrency 2024-04-25 14:54:00 +00:00
brianmcgee requested review from Mic92 2024-04-26 08:33:27 +00:00
brianmcgee added 1 commit 2024-04-26 08:55:15 +00:00
Signed-off-by: Brian McGee <brian@bmcgee.ie>
brianmcgee added 1 commit 2024-04-26 09:35:05 +00:00
Signed-off-by: Brian McGee <brian@bmcgee.ie>
brianmcgee merged commit 5d341f929f into main 2024-04-26 09:36:36 +00:00
brianmcgee deleted branch feat/concurrency-refactor 2024-04-26 09:36:37 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: numtide/treefmt#30
No description provided.