Skip to content

Fix pre-commit failures from ruff v0.15.4 upgrade#264

Merged
dfm merged 3 commits intomainfrom
copilot/debug-pre-commit-issues
Mar 15, 2026
Merged

Fix pre-commit failures from ruff v0.15.4 upgrade#264
dfm merged 3 commits intomainfrom
copilot/debug-pre-commit-issues

Conversation

Copy link
Contributor

Copilot AI commented Mar 15, 2026

Ruff v0.15.4 (from #257) introduces new lint rules that fail on existing code.

  • UP047 in pyproject.toml: Added to ignore list. This rule requires PEP 695 type parameter syntax (def foo[T: (...)]), which needs Python 3.12+. Project supports 3.11+.
  • PLW0108 in tests/test_gp.py: Replaced mean=lambda x: jnp.sum(x) with mean=jnp.sum.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • results.pre-commit.ci
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI and others added 2 commits March 15, 2026 15:04
Co-authored-by: dfm <350282+dfm@users.noreply.github.com>
Co-authored-by: dfm <350282+dfm@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug pre-commit issues in tinygp Fix pre-commit failures from ruff v0.15.4 upgrade Mar 15, 2026
Copilot AI requested a review from dfm March 15, 2026 15:07
Copilot finished work on behalf of dfm March 15, 2026 15:07
@dfm dfm marked this pull request as ready for review March 15, 2026 15:08
@dfm dfm merged commit 71d87d5 into main Mar 15, 2026
6 of 7 checks passed
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.

2 participants