Skip to content

Upgrade to Resonant v0.47#374

Merged
brianhelba merged 35 commits intomainfrom
resonant-upgrade
Feb 25, 2026
Merged

Upgrade to Resonant v0.47#374
brianhelba merged 35 commits intomainfrom
resonant-upgrade

Conversation

@brianhelba
Copy link
Member

The primary change is to switch to using Ruff for linting and formatting.

Once this is merged, existing branches will have to be rebased onto this, as all string literals have been changed to use double quotes. However, Ruff (unlike Flake8) will fix any quote-style issues automatically when uv run tox -e format is run.

Some Ruff error categories have been temporarily marked as ignored if they required additional effort to fix. We should triage these, as many may be easy to fix after a bit of discussion.

brianhelba and others added 30 commits February 23, 2026 22:39
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
round() already returns int in Python 3.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The earlier definitions without related_name were superseded by
the later definitions that include related_name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…blocks

logging.exception automatically includes the traceback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Only moved imports that are genuinely type-only (test fixtures,
migration function params, Celery task params). Skipped view files
where Ninja/Pydantic evaluate annotations at runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These were leftover debug expressions; the values are properly
accessed later in the same function.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The bare raise in the else branch (not in an except handler) would
have raised RuntimeError implicitly. Now raises an explicit Exception
with the error message.
The variable was incremented but never read.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
logging.exception already includes the full exception and traceback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
brianhelba and others added 4 commits February 23, 2026 23:48
Uses 30s for API calls and 60s for file downloads.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These are rules that require larger refactors, domain-specific
decisions, or are too burdensome for the current codebase.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

Deploying bats-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5d2c7c7
Status: ✅  Deploy successful!
Preview URL: https://5b94cec8.bats-ai.pages.dev
Branch Preview URL: https://resonant-upgrade.bats-ai.pages.dev

View logs

@brianhelba brianhelba merged commit 3e27d11 into main Feb 25, 2026
6 checks passed
@brianhelba brianhelba deleted the resonant-upgrade branch February 25, 2026 15:18
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