Skip to content

install prek by default#147

Merged
blooop merged 4 commits intomainfrom
prek
Mar 1, 2026
Merged

install prek by default#147
blooop merged 4 commits intomainfrom
prek

Conversation

@blooop
Copy link
Owner

@blooop blooop commented Mar 1, 2026

Summary by Sourcery

Add a dedicated task to run prek install by default in the project tooling.

New Features:

  • Introduce a prek-install task command to simplify running prek install via the project task runner.

Build:

  • Update project task configuration to include a prek-install command for Prek setup.

@sourcery-ai
Copy link

sourcery-ai bot commented Mar 1, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds a new convenience script alias for installing prek by default and updates devcontainer and Pixi lockfile metadata accordingly.

File-Level Changes

Change Details Files
Expose a dedicated script command for installing prek by default.
  • Add prek-install script entry that runs prek install alongside existing prek-related scripts
pyproject.toml
Update development environment configuration and dependency lockfile to reflect the new setup.
  • Adjust devcontainer configuration metadata (likely to surface the new script or environment defaults)
  • Refresh pixi.lock so dependency resolution is consistent with the new configuration
.devcontainer/devcontainer.json
pixi.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • If prek is intended to be available out of the box, consider wiring prek-install into the devcontainer lifecycle (e.g., postCreateCommand) so contributors don’t need to remember to run it manually.
  • The new prek-install task name slightly breaks the existing pattern of verbs (run, autoupdate); consider aligning naming (e.g., prek-setup or prek-init) if this task is meant to be a one-time or default setup step.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- If `prek` is intended to be available out of the box, consider wiring `prek-install` into the devcontainer lifecycle (e.g., `postCreateCommand`) so contributors don’t need to remember to run it manually.
- The new `prek-install` task name slightly breaks the existing pattern of verbs (`run`, `autoupdate`); consider aligning naming (e.g., `prek-setup` or `prek-init`) if this task is meant to be a one-time or default setup step.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@blooop blooop merged commit 55837f3 into main Mar 1, 2026
8 checks passed
@blooop blooop deleted the prek branch March 1, 2026 17:21
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.

1 participant