Skip to content

Feature/update from template - #797

Merged
blooop merged 9 commits into
mainfrom
feature/update_from_template
Mar 21, 2026
Merged

blooop merged 9 commits into
mainfrom
feature/update_from_template

Conversation

@blooop

@blooop blooop commented Mar 21, 2026 •

Copy link
Copy Markdown
Owner

Summary by Sourcery

Update development tooling configuration and project scripts to align with the latest template.

Enhancements:

  • Switch shellcheck pre-commit hook to use the shellcheck-py repository and version 0.11.0.1.
  • Add a new prek-install helper command and remove the obsolete setup-git-merge-driver script alias from project scripts.
  • Refresh devcontainer configuration, Claude session hook, and Pixi lockfile to match updated tooling and dependencies.

blooop added 9 commits March 1, 2026 16:25
The custom merge driver required per-clone git config setup which was
fragile. Git's built-in merge=ours driver works from .gitattributes
alone with zero local configuration.
Replace custom merge driver with built-in merge=ours
install prek by default
@sourcery-ai

sourcery-ai Bot commented Mar 21, 2026 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates project automation and tooling configuration to align with the latest template: switches the shellcheck pre-commit hook to the shellcheck-py mirror, adjusts dev scripts in pyproject, and refreshes environment/devcontainer lockfiles and Claude session hooks from the template.

Flow diagram for updated pre-commit shellcheck and prek commands

flowchart TD
    Dev[Developer edits code] --> Stage[Run git add]
    Stage --> Commit[Run git commit]

    Commit --> PreCommit[pre-commit framework]

    subgraph UpdatedHooks
        PreCommit --> RuffHook[Ruff lint and format]
        PreCommit --> ShellcheckHook[shellcheck-py hook]
    end

    RuffHook --> HookResult[pre-commit overall result]
    ShellcheckHook --> HookResult

    HookResult -->|all hooks pass| CommitSuccess[Commit recorded]
    HookResult -->|any hook fails| CommitBlocked[Commit blocked; fix issues]

    %% Prek commands
    Dev --> PrekInstall[Run `prek-install`]
    PrekInstall --> PrekTool[prek tool]
    PrekTool --> EnvSetup[Install and prepare project environment]

    Dev --> PrekUpdate[Run `prek-update`]
    PrekUpdate --> PrekUpdateTool[prek autoupdate]
    PrekUpdateTool --> EnvUpdated[Environment and tooling updated from template]
Loading

File-Level Changes

Change Details Files
Switch shellcheck pre-commit hook to use the shellcheck-py mirror instead of the previous repo.
  • Update pre-commit shellcheck repo URL to the shellcheck-py mirror
  • Bump the shellcheck hook revision to the corresponding shellcheck-py version
.pre-commit-config.yaml
Align pyproject dev scripts with the template by adding a prek installation command and removing an obsolete git merge driver helper.
  • Add a new prek-install script entry invoking prek install
  • Remove the setup-git-merge-driver script entry that configured a custom merge driver
pyproject.toml
Refresh template-managed support files (Claude session hooks, devcontainer configuration, and Pixi lockfile) from the upstream template.
  • Update Claude SessionStart hook to the latest template version
  • Update devcontainer configuration to match the current template
  • Regenerate Pixi lockfile to reflect updated environment/template settings
.claude/hooks/SessionStart
.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

@blooop
blooop enabled auto-merge March 21, 2026 08:34

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


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 7c75aad into main Mar 21, 2026
6 of 7 checks passed
@blooop
blooop deleted the feature/update_from_template branch March 21, 2026 08:40
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