Skip to content

Update pre-commit and its dependencies - #58

Merged
forsyth2 merged 3 commits into
mainfrom
update-pre-commit-deps
Aug 13, 2026
Merged

Update pre-commit and its dependencies#58
forsyth2 merged 3 commits into
mainfrom
update-pre-commit-deps

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This PR was auto-generated to update pre-commit and its dependencies.

Closes #56

@github-actions github-actions Bot added the DevOps CI/CD, configuration, etc. label Aug 13, 2026
@github-actions
github-actions Bot requested review from forsyth2 and xylar August 13, 2026 21:44

@xylar xylar 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.

@forsyth2, seems to work! Including the update script!

Copilot AI 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.

Pull request overview

This PR updates the pinned pre-commit toolchain versions across the repository’s three synchronization points (pyproject.toml QA extra, conda/dev.yml, and .pre-commit-config.yaml) to reflect a pre-commit autoupdate run.

Changes:

  • Bump Black, isort, and mypy pinned versions in pyproject.toml and conda/dev.yml.
  • Update the rev pins for the corresponding pre-commit hooks in .pre-commit-config.yaml.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pyproject.toml Updates QA extra pins for Black/isort/mypy to match the updated pre-commit toolchain.
conda/dev.yml Updates conda dev environment QA pins to stay in sync with the QA extra / pre-commit hook revisions.
.pre-commit-config.yaml Updates hook rev pins, but introduces invalid YAML indentation in multiple repo blocks.
Suppressed comments (4)

.pre-commit-config.yaml:20

  • This repo block is indented inconsistently (and the hooks sequence is not nested under hooks:), which breaks YAML structure for pre-commit.
-   repo: https://github.com/psf/black
    rev: 26.5.1
    hooks:
    -   id: black

.pre-commit-config.yaml:26

  • This repo block is indented inconsistently (and the hooks sequence is not nested under hooks:), which breaks YAML structure for pre-commit.
-   repo: https://github.com/PyCQA/isort
    rev: 8.0.1
    hooks:
    -   id: isort

.pre-commit-config.yaml:35

  • The hooks: value here is not a properly-indented YAML list, so pre-commit won't be able to parse this repo configuration.
-   repo: https://github.com/pycqa/flake8
    rev: 7.3.0
    hooks:
    -   id: flake8
        args: ["--config=.flake8"]

.pre-commit-config.yaml:43

  • The hooks: value here is not a properly-indented YAML list, so pre-commit won't be able to parse this repo configuration.
-   repo: https://github.com/pre-commit/mirrors-mypy
    rev: v2.3.0
    hooks:
    -   id: mypy
        args: ["--config=pyproject.toml"]

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .pre-commit-config.yaml Outdated
Comment thread .pre-commit-config.yaml Outdated
xylar and others added 2 commits August 14, 2026 00:01
`pre-commit-update` rewrites .pre-commit-config.yaml with ruamel.yaml.
With no configuration it falls back to `indent(sequence=4)`, leaving
ruamel's default `offset=0`, which puts the `-` of every list item in
column 0.  The result is valid YAML that parses identically, but it
reformats the entire file, strands the existing comments at their old
indentation, and buries a four-line rev bump in a 32-line diff.

Set `[tool.pre-commit-update.yaml]` in pyproject.toml, which the tool
passes straight through to `ruamel.yaml.YAML.indent`, and restore the
conventional `  - item` indentation in .pre-commit-config.yaml so the
next automated update is a diff of just the revs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@xylar

xylar commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Okay @forsyth2, all yours.

@forsyth2 forsyth2 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Visually inspected PR. Confirmed diffs match those of earlier attempt, #56, aside from known issues which have also been resolved.

@forsyth2
forsyth2 merged commit 3f62bda into main Aug 13, 2026
7 checks passed
@forsyth2 forsyth2 mentioned this pull request Aug 13, 2026
7 tasks
@forsyth2

Copy link
Copy Markdown
Collaborator

Thanks @xylar for setting this up. I will try to apply something similar for E3SM-Project/zppy#851, E3SM-Project/zstash#453, E3SM-Project/e3sm-comms#7 (note e3sm_data_docs doesn't use pre-commit to begin with).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DevOps CI/CD, configuration, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants