Skip to content

chore: Add dependabot updates for pre-commit#9861

Merged
edgarrmondragon merged 4 commits intomainfrom
pre-commit-dependabot
Mar 9, 2026
Merged

chore: Add dependabot updates for pre-commit#9861
edgarrmondragon merged 4 commits intomainfrom
pre-commit-dependabot

Conversation

@edgarrmondragon
Copy link
Copy Markdown
Collaborator

@edgarrmondragon edgarrmondragon commented Feb 19, 2026

Related

Summary by Sourcery

Configure automated updates and compatibility for pre-commit tooling.

Enhancements:

  • Specify JavaScript as the language for the eslint pre-commit hook to ensure proper execution.

Build:

  • Add Dependabot configuration to manage weekly pre-commit hook updates.

@edgarrmondragon edgarrmondragon self-assigned this Feb 19, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 19, 2026

Deploy Preview for meltano canceled.

Name Link
🔨 Latest commit 58b641f
🔍 Latest deploy log https://app.netlify.com/projects/meltano/deploys/69af1ce4b7b99d0008e59972

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai bot commented Feb 19, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Configures Dependabot to manage pre-commit hook updates and fixes the pre-commit eslint mirror configuration by explicitly setting its language to JavaScript.

Flow diagram for weekly Dependabot pre-commit update process

flowchart TD
  A["Scheduled weekly interval"] --> B["Dependabot checks pre-commit ecosystem in /"]
  B --> C{"Outdated pre-commit hooks?"}
  C -->|"No"| D["Do nothing"]
  C -->|"Yes"| E["Respect 7-day cooldown between PRs"]
  E --> F{"Cooldown active?"}
  F -->|"Yes"| D
  F -->|"No"| G["Create or update PR to bump pre-commit hooks"]
Loading

File-Level Changes

Change Details Files
Enable Dependabot updates for pre-commit hooks with a weekly schedule and cooldown.
  • Add a new Dependabot update entry targeting the pre-commit ecosystem at the repo root
  • Configure the pre-commit updates to run on a weekly interval
  • Set a default cooldown period of 7 days for pre-commit updates
.github/dependabot.yml
Fix eslint pre-commit hook configuration to correctly declare its language.
  • Update the eslint mirror repo configuration to explicitly set language to javascript to satisfy tooling and Dependabot expectations
.pre-commit-config.yaml

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

@edgarrmondragon edgarrmondragon added the dependencies Pull requests that update a dependency file label Feb 19, 2026
Copy link
Copy Markdown
Contributor

@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 found 2 issues, and left some high level feedback:

  • In .github/dependabot.yml, there appears to be a stray double quote in package-ecosystem: pre-commit" that will likely break the YAML and should be removed.
  • In .pre-commit-config.yaml, verify that language: javascript is a valid pre-commit language for the eslint mirror; typically language: node or system is used, so this may not behave as intended.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `.github/dependabot.yml`, there appears to be a stray double quote in `package-ecosystem: pre-commit"` that will likely break the YAML and should be removed.
- In `.pre-commit-config.yaml`, verify that `language: javascript` is a valid pre-commit language for the eslint mirror; typically `language: node` or `system` is used, so this may not behave as intended.

## Individual Comments

### Comment 1
<location> `.github/dependabot.yml:4` </location>
<code_context>
 version: 2
 enable-beta-ecosystems: true
 updates:
+  - package-ecosystem: pre-commit"
+    directory: "/"
+    schedule:
</code_context>

<issue_to_address>
**issue (bug_risk):** Stray quote in `package-ecosystem` value likely breaks YAML / Dependabot parsing.

The trailing `"` after `pre-commit` makes this invalid YAML and will likely cause Dependabot to skip or fail this config. Either remove the quote (`package-ecosystem: pre-commit`) or quote the entire value (`package-ecosystem: "pre-commit"`).
</issue_to_address>

### Comment 2
<location> `.pre-commit-config.yaml:56` </location>
<code_context>

   - repo: https://github.com/pre-commit/mirrors-eslint
     rev: v8.55.0 # Keep this in sync with the eslint "additional_dependency" below!
+    language: javascript
     hooks:
       - id: eslint
</code_context>

<issue_to_address>
**issue (bug_risk):** `language: javascript` is not a valid pre-commit language and will cause hook failures.

`javascript` is not a supported `language` value in pre-commit. For the eslint mirror, use `language: node` (or omit `language` to rely on the default). Leaving it as `javascript` will cause the hook to fail during install or run.
</issue_to_address>

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.

Comment thread .github/dependabot.yml Outdated
Comment thread .pre-commit-config.yaml Outdated
@edgarrmondragon edgarrmondragon force-pushed the pre-commit-dependabot branch 2 times, most recently from 6a31e6a to 2314455 Compare March 2, 2026 19:59
@edgarrmondragon edgarrmondragon force-pushed the pre-commit-dependabot branch from 13b972a to 58b641f Compare March 9, 2026 19:17
@edgarrmondragon edgarrmondragon added this pull request to the merge queue Mar 9, 2026
Merged via the queue into main with commit 5c88d22 Mar 9, 2026
22 checks passed
@edgarrmondragon edgarrmondragon deleted the pre-commit-dependabot branch March 9, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant