Skip to content

chore: add pre-commit-minimal back#3449

Merged
Hofer-Julian merged 2 commits intoprefix-dev:mainfrom
Hofer-Julian:feat/pre-commit-minimal
Mar 27, 2025
Merged

chore: add pre-commit-minimal back#3449
Hofer-Julian merged 2 commits intoprefix-dev:mainfrom
Hofer-Julian:feat/pre-commit-minimal

Conversation

@Hofer-Julian
Copy link
Copy Markdown
Contributor

I tried "cargo-clippy" in my pre-commit now for a while, but the overhead is just to much.
I want my minimal version back again :)

I tried "cargo-clippy" in my pre-commit now for a while,
but the overhead is just to much.
I want my minimal version back again :)
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reintroduces a minimal pre-commit installation option while updating hook configuration to reflect a desired workflow change. Key changes include:

  • Modifying the pre-commit install command in pixi.toml to support both pre-commit and pre-push hooks.
  • Adding a new pre-commit-install-minimal command for a leaner setup.
  • Updating the hook stage in .pre-commit-config.yaml from pre-commit to pre-push.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pixi.toml Updated pre-commit commands and added a minimal install option to reduce overhead.
.pre-commit-config.yaml Changed the hook stage to pre-push for the cargo-clippy command execution.
Comments suppressed due to low confidence (1)

.pre-commit-config.yaml:102

  • [nitpick] Ensure that updating the hook stage to pre-push aligns with the intended workflow, as this change may alter when the checks are executed. If intentional as part of reverting to a minimal setup, consider adding a comment to document the rationale.
stages: [pre-push, manual]

@Hofer-Julian
Copy link
Copy Markdown
Contributor Author

Merging it now, since it also fixes CI on main

@Hofer-Julian Hofer-Julian merged commit 7eda83f into prefix-dev:main Mar 27, 2025
33 checks passed
@Hofer-Julian Hofer-Julian deleted the feat/pre-commit-minimal branch March 27, 2025 16:29
Hofer-Julian added a commit that referenced this pull request Mar 28, 2025
chore: raise an error if a there is an argument with no default after one with a default

chore: add support for running tasks with arguments passed via cli

chore: add support for running tasks with arguments passed via depends

fix: the serialization of dependencies as tables in tasks

Update crates/pixi_manifest/src/task.rs

Co-authored-by: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com>

chore: remove unused struct `DisplayDependency`

chore: change  to a struct

fix: use  library and a dictionary to create the task argument tests

chore: remove extra method from Dependency

chore: add pre-commit-minimal back (#3449)

refactor: rename variables for clarity in task argument tests

fix: add the trampoline binary back

update trampoline binaries

[CI]: Update trampoline binaries for all targets
Hofer-Julian added a commit that referenced this pull request Mar 28, 2025
chore: raise an error if a there is an argument with no default after one with a default

chore: add support for running tasks with arguments passed via cli

chore: add support for running tasks with arguments passed via depends

fix: the serialization of dependencies as tables in tasks

Update crates/pixi_manifest/src/task.rs

Co-authored-by: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com>

chore: remove unused struct `DisplayDependency`

chore: change  to a struct

fix: use  library and a dictionary to create the task argument tests

chore: remove extra method from Dependency

chore: add pre-commit-minimal back (#3449)

refactor: rename variables for clarity in task argument tests

fix: add the trampoline binary back

update trampoline binaries

[CI]: Update trampoline binaries for all targets

Remove unneeded implementation

Update src/task/task_graph.rs

Co-authored-by: Tim de Jager <tim@prefix.dev>
prsabahrami pushed a commit that referenced this pull request Apr 3, 2025
chore: raise an error if a there is an argument with no default after one with a default

chore: add support for running tasks with arguments passed via cli

chore: add support for running tasks with arguments passed via depends

fix: the serialization of dependencies as tables in tasks

Update crates/pixi_manifest/src/task.rs

Co-authored-by: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com>

chore: remove unused struct `DisplayDependency`

chore: change  to a struct

fix: use  library and a dictionary to create the task argument tests

chore: remove extra method from Dependency

chore: add pre-commit-minimal back (#3449)

refactor: rename variables for clarity in task argument tests

fix: add the trampoline binary back

update trampoline binaries

[CI]: Update trampoline binaries for all targets

Remove unneeded implementation

Update src/task/task_graph.rs

Co-authored-by: Tim de Jager <tim@prefix.dev>
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.

2 participants