Skip to content

Upgrade to ruff>=0.16.0#2857

Merged
simonw merged 3 commits into
mainfrom
ruff-0-16-0
Jul 25, 2026
Merged

Upgrade to ruff>=0.16.0#2857
simonw merged 3 commits into
mainfrom
ruff-0-16-0

Conversation

@simonw

@simonw simonw commented Jul 25, 2026

Copy link
Copy Markdown
Owner

@simonw

simonw commented Jul 25, 2026

Copy link
Copy Markdown
Owner Author

After upgrading the version in pyproject.toml:

uv run ruff check .

Produces:

Found 862 errors.
[*] 633 fixable with the `--fix` option (60 hidden fixes can be enabled with the `--unsafe-fixes` option).

Full output here: https://gist.github.com/simonw/3935f0e8042d117427ccdb5d4c3a13bf

@simonw

simonw commented Jul 25, 2026

Copy link
Copy Markdown
Owner Author

Running this command dropped it down to 154 errors:

uv run ruff check . --fix --unsafe-fixes

@simonw

simonw commented Jul 25, 2026

Copy link
Copy Markdown
Owner Author

In Claude Code with Opus 5 I prompted:

Run this command, then fix all the problems

    uv run ruff check .

@codecov

codecov Bot commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 450 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (481df7f) to head (09843e6).

Files with missing lines Patch % Lines
datasette/app.py 0.00% 54 Missing ⚠️
datasette/views/table_extras.py 0.00% 54 Missing ⚠️
datasette/views/table.py 0.00% 33 Missing ⚠️
datasette/utils/__init__.py 0.00% 30 Missing ⚠️
datasette/utils/multipart.py 0.00% 30 Missing ⚠️
datasette/database.py 0.00% 20 Missing ⚠️
datasette/views/row.py 0.00% 18 Missing ⚠️
datasette/views/database.py 0.00% 17 Missing ⚠️
datasette/views/table_create_alter.py 0.00% 14 Missing ⚠️
datasette/cli.py 0.00% 12 Missing ⚠️
... and 44 more
Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2857   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         73      73           
  Lines      12305   12279   -26     
=====================================
+ Misses     12305   12279   -26     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@simonw
simonw marked this pull request as ready for review July 25, 2026 22:45
@simonw
simonw merged commit e889403 into main Jul 25, 2026
45 checks passed
@simonw
simonw deleted the ruff-0-16-0 branch July 25, 2026 22:47
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.

1 participant