Skip to content

chore(deps-dev): bump ruff from 0.15.22 to 0.16.0 - #34

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/ruff-0.16.0
Open

chore(deps-dev): bump ruff from 0.15.22 to 0.16.0#34
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/ruff-0.16.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 3, 2026

Copy link
Copy Markdown
Contributor

Bumps ruff from 0.15.22 to 0.16.0.

Release notes

Sourced from ruff's releases.

0.16.0

Release Notes

Released on 2026-07-23.

Check out the blog post for a migration guide and overview of the changes!

Breaking changes

  • Ruff now enables a much larger set of rules by default (413, up from 59). See the blog post for more details and the new Default Rules page for a full listing of the enabled rules. Note that this is primarily an expansion, but 18 of the more opinionated pycodestyle (E) and pyflakes (F) rules have been removed from the default set: E401, E402, E701, E702, E703, E711, E712, E713, E714, E721, E731, E741, E742, E743, F403, F405, F406, and F722.

  • Ruff can now format Python code blocks in Markdown files and will do this by default. See the documentation for more details.

  • Ruff now supports ruff: ignore comments at the ends of lines, like noqa comments, or on the line preceding a diagnostic. For example, these both suppress an unused-import (F401) diagnostic:

    import math  # ruff: ignore[F401]
    ruff: ignore[F401]
    import os

  • Fixes are now shown in check and format --check output:

    ruff format --check .
    unformatted: File would be reformatted
     --> try.md:1:1
      |
    1 | ```python
      - import   math
    2 + import math
    3 | ```
      |
    1 file would be reformatted

    This example also shows off the Markdown formatting.

  • format --check now supports the same output formats as the linter, including the github and gitlab outputs for rendering annotations in CI:

    ruff format --check --output-format github .
    ::error title=ruff (unformatted),file=try.md,line=2,col=8,endLine=2,endColumn=10::try.md:2:8: unformatted: File would be reformatted

    See the CLI help or documentation for the full list of supported formats.

  • The filename, location, end_location, fix.edits[].location, and fix.edits[].end_location fields in the JSON output format may now be null rather than defaulting to the empty string and row 1, column 1, respectively.

... (truncated)

Changelog

Sourced from ruff's changelog.

0.16.0

Released on 2026-07-23.

Check out the blog post for a migration guide and overview of the changes!

Breaking changes

  • Ruff now enables a much larger set of rules by default (413, up from 59). See the blog post for more details and the new Default Rules page for a full listing of the enabled rules. Note that this is primarily an expansion, but 18 of the more opinionated pycodestyle (E) and pyflakes (F) rules have been removed from the default set: E401, E402, E701, E702, E703, E711, E712, E713, E714, E721, E731, E741, E742, E743, F403, F405, F406, and F722.

  • Ruff can now format Python code blocks in Markdown files and will do this by default. See the documentation for more details.

  • Ruff now supports ruff: ignore comments at the ends of lines, like noqa comments, or on the line preceding a diagnostic. For example, these both suppress an unused-import (F401) diagnostic:

    import math  # ruff: ignore[F401]
    ruff: ignore[F401]
    import os

  • Fixes are now shown in check and format --check output:

    ruff format --check .
    unformatted: File would be reformatted
     --> try.md:1:1
      |
    1 | ```python
      - import   math
    2 + import math
    3 | ```
      |
    1 file would be reformatted

    This example also shows off the Markdown formatting.

  • format --check now supports the same output formats as the linter, including the github and gitlab outputs for rendering annotations in CI:

... (truncated)

Commits
  • a2635fd Bump 0.16.0 (#27136)
  • 3433449 [ty] Reuse full call diagnostics for implicit setter calls (#27115)
  • 2240070 Reflect ruff: ignore and --add-ignore stabilization in documentation (#27...
  • 17ef711 Stabilize --add-ignore (#27125)
  • ef912bb Add newly stabilized rules to defaults (#27055)
  • b30f040 Stabilize new default rules (#27035)
  • bcd70c5 Exclude Markdown files from format-dev runs (#27052)
  • 87e51e2 Fix format --check spans for syntax errors (#27045)
  • afe2723 [flake8-gettext] Stabilize qualified-name and built-in binding resolution (...
  • a9702d8 [flake8-bandit] Stabilize string literal binding resolution (S310) (#26944)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by cubic

Update ruff to 0.16.0 to pick up the latest linting and formatter improvements. This version expands default rules and formats Python blocks in Markdown, which may surface new findings.

  • Migration
    • Run ruff check . and fix or adjust config. Explicitly select rules or extend ignores to keep prior behavior.
    • Disable Markdown code block formatting in Ruff config if not desired.
    • If you parse Ruff JSON, handle possible null filename/location fields.

Written for commit 5719e3b. Summary will update on new commits.

Review in cubic

Note

Bump ruff dev dependency from 0.15.22 to 0.16.0

Updates the ruff version pin in pyproject.toml to the latest release.

Macroscope summarized 5719e3b.

Summary by CodeRabbit

  • Chores
    • Updated the Ruff development tooling to version 0.16.0.

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.15.22 to 0.16.0.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.15.22...0.16.0)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Aug 3, 2026
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Aug 3, 2026
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The pull request updates the Ruff development dependency pin in pyproject.toml from 0.15.22 to 0.16.0.

Changes

Ruff dependency update

Layer / File(s) Summary
Update Ruff development pin
pyproject.toml
The development dependency pin for Ruff changes from 0.15.22 to 0.16.0.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: furkanerday, kriptoburak

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the development dependency update from Ruff 0.15.22 to 0.16.0.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/pip/ruff-0.16.0

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pyproject.toml`:
- Line 68: Regenerate both development lockfiles to align Ruff with the
pyproject.toml requirement of 0.16.0: update the Ruff pin in uv.lock and
requirements-dev.lock, and generate requirements-dev.lock without hashes as
required by scripts/bootstrap.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0c179a9c-41b6-4915-b39f-2a41a41b13c1

📥 Commits

Reviewing files that changed from the base of the PR and between 5bee02f and 5719e3b.

📒 Files selected for processing (1)
  • pyproject.toml

Comment thread pyproject.toml
"pytest",
"pytest-asyncio",
"ruff==0.15.22",
"ruff==0.16.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n 'ruff==' pyproject.toml requirements-dev.lock
test "$(sed -n 's/^[[:space:]]*ruff==//p' requirements-dev.lock)" = "0.16.0"

Repository: Xquik-dev/x-twitter-scraper-python

Length of output: 249


🏁 Script executed:

set -euo pipefail
printf '%s\n' '--- dependency declarations ---'
sed -n '55,85p' pyproject.toml
sed -n '65,95p' requirements-dev.lock
printf '%s\n' '--- lockfile references and install commands ---'
rg -n -i 'requirements-dev\.lock|pip install|ruff' .github Makefile* README.md pyproject.toml 2>/dev/null || true
printf '%s\n' '--- lockfile status ---'
git ls-files requirements-dev.lock pyproject.toml

Repository: Xquik-dev/x-twitter-scraper-python

Length of output: 1911


🏁 Script executed:

set -euo pipefail
printf '%s\n' '--- repository lock and workflow files ---'
git ls-files | rg '(^|/)(uv\.lock|requirements.*\.lock|.*workflow.*|Makefile|tox\.ini|noxfile.*|pyproject\.toml)$' || true
printf '%s\n' '--- lockfile headers and Ruff entries ---'
for f in uv.lock requirements-dev.lock; do
  if test -f "$f"; then
    echo "### $f"
    sed -n '1,35p' "$f"
    rg -n -C 5 '^name = "ruff"$|^ruff==|ruff-' "$f" || true
  fi
done
printf '%s\n' '--- all tracked references to development lockfiles and Ruff pins ---'
rg -n -i 'uv\.lock|requirements-dev\.lock|ruff([=<>!~]|-[0-9])' --glob '!*.lock' --glob '!pyproject.toml' . || true

Repository: Xquik-dev/x-twitter-scraper-python

Length of output: 10321


🏁 Script executed:

set -euo pipefail
printf '%s\n' '--- development setup and CI commands ---'
sed -n '1,80p' scripts/bootstrap
sed -n '1,180p' .github/workflows/ci.yml
sed -n '1,80p' CONTRIBUTING.md
printf '%s\n' '--- Ruff package records in both lockfiles ---'
python3 - <<'PY'
from pathlib import Path
import re

for name in ("uv.lock", "requirements-dev.lock"):
    text = Path(name).read_text()
    versions = re.findall(r'(?m)^name = "ruff"\nversion = "([^"]+)"', text)
    if not versions:
        versions = re.findall(r'(?m)^ruff==([^ \n]+)', text)
    print(f"{name}: {versions}")
PY

Repository: Xquik-dev/x-twitter-scraper-python

Length of output: 5962


Regenerate both development lockfiles.

pyproject.toml requires Ruff 0.16.0, but uv.lock and requirements-dev.lock still pin 0.15.22. Update both lockfiles. CI uses uv.lock, and non-uv development installs use requirements-dev.lock. Generate requirements-dev.lock without hashes, as required by scripts/bootstrap.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pyproject.toml` at line 68, Regenerate both development lockfiles to align
Ruff with the pyproject.toml requirement of 0.16.0: update the Ruff pin in
uv.lock and requirements-dev.lock, and generate requirements-dev.lock without
hashes as required by scripts/bootstrap.

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

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants