Merged
Conversation
28d0f77 to
2da9e47
Compare
93fa498 to
b5b5063
Compare
a430460 to
77eafd5
Compare
updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.8.0 → 26.3.1](psf/black-pre-commit-mirror@24.8.0...26.3.1) - [github.com/PyCQA/flake8: 7.1.1 → 7.3.0](PyCQA/flake8@7.1.1...7.3.0) - [github.com/pycqa/isort: 5.13.2 → 8.0.1](PyCQA/isort@5.13.2...8.0.1)
6647cd8 to
af83628
Compare
for more information, see https://pre-commit.ci
updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.8.0 → 26.3.1](psf/black-pre-commit-mirror@24.8.0...26.3.1) - [github.com/PyCQA/flake8: 7.1.1 → 7.3.0](PyCQA/flake8@7.1.1...7.3.0) - [github.com/pycqa/isort: 5.13.2 → 8.0.1](PyCQA/isort@5.13.2...8.0.1)
e24ee89 to
1ee86d8
Compare
for more information, see https://pre-commit.ci
…PSP/cpsc2021 into pre-commit-ci-update-config
There was a problem hiding this comment.
Pull request overview
Updates the repo’s pre-commit tooling versions and applies the resulting auto-formatting changes across a handful of Python modules, alongside updating the formatting CI job’s Python version matrix.
Changes:
- Bump pre-commit hook revisions (pre-commit-hooks, black mirror, flake8, isort) and adjust flake8 ignores.
- Apply formatter-driven whitespace/docstring and string formatting changes in several Python files.
- Update the formatting GitHub Actions workflow to run on newer Python versions.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
utils/utils_interval.py |
Minor whitespace formatting after module docstring. |
utils/scoring_metrics_test.py |
Formatter-driven docstring and textwrap.dedent call formatting changes. |
utils/misc.py |
Formatter-driven module docstring formatting change. |
utils/__init__.py |
Formatter-driven module docstring formatting change. |
trainer.py |
Formatter-driven textwrap.dedent call formatting changes. |
test_entry.py |
Formatter-driven module docstring formatting change. |
sample_data/__init__.py |
Formatter-driven module docstring formatting change. |
gather_results.py |
Formatter-driven module docstring formatting change. |
dataset.py |
Formatter-driven nildent call formatting change. |
data_reader.py |
Formatter-driven module docstring formatting change. |
cfg.py |
Formatter-driven module docstring formatting change. |
.pre-commit-config.yaml |
Pre-commit hook autoupdate (versions + black mirror switch + flake8 ignore tweak). |
.github/workflows/check-formatting.yml |
Update formatting CI Python matrix versions. |
Comments suppressed due to low confidence (1)
.github/workflows/check-formatting.yml:23
- The workflow matrix now includes Python 3.12, but this job installs the full
requirements.txt(and also pinstorch==1.10.0+cu113). Several pinned deps inrequirements.txt(e.g., numpy 1.22 / scipy 1.6 / pandas 1.2) and torch 1.10 are very unlikely to install on 3.12, so the formatting check will likely fail before pre-commit runs. Consider either (a) limiting the matrix to versions compatible with the pinned deps, or (b) removing the heavyweight dependency installs from this formatting-only job and just runningpre-commit(or installing only pre-commit’s own dependencies).
python-version: ["3.10", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
wenh06
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
updates: