Skip to content

chore(deps): update ruff to v0.17.3 (main) - #22432

Merged
nijel merged 2 commits into
mainfrom
renovate/main-ruff
Oct 30, 2026
Merged

nijel merged 2 commits into
mainfrom
renovate/main-ruff

Conversation

@renovate

@renovate renovate Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change Age Confidence
astral-sh/ruff-pre-commit repository patch v0.17.2 → v0.17.3 age confidence
ruff (source, changelog) pre-commit-python patch ==0.17.2 → ==0.17.3 age confidence

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.


Release Notes

astral-sh/ruff-pre-commit

v0.17.3

Compare Source

See: https://github.com/astral-sh/ruff/releases/tag/0.17.3

astral-sh/ruff (ruff)

v0.17.3

Compare Source

Released on 2026-10-26.

Preview features
  • [suspicious] Add shared-clock-mock (#​29074)
Bug fixes
  • [pyupgrade] Avoid incorrect conversions to f-strings (UP032) (#​25485)
Performance
  • Buffer stdout in ruff format (#​29631)
  • Specialize ASCII identifier lexing (#​29503)
  • Speed up identifier and keyword lexing (#​29463)
Documentation
  • [flake8-bandit] Describe what the rule actually checks for httpx (S113) (#​27936)
Contributors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Only on Saturday (* * * * 6)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies PR: Third-party library dependencies. label Oct 28, 2026
@renovate
renovate Bot enabled auto-merge (rebase) October 28, 2026 17:55
@nijel
nijel self-requested a review as a code owner October 29, 2026 13:06
@renovate

renovate Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
13598 1 13597 1014
View the top 1 failed test(s) by shortest run time
weblate.accounts.tests.test_twofactor.TwoFactorTestCase::test_password_requires_recent_second_factor
Stack Traces | 0.385s run time
self = <weblate.accounts.tests.test_twofactor.TwoFactorTestCase testMethod=test_password_requires_recent_second_factor>

    def test_password_requires_recent_second_factor(self) -> None:
        self.add_totp()
    
        with mock.patch("weblate.accounts.views.time") as clock:
            clock.time.return_value = 2_000_000_000
    
            stale_session = self.client.session
            stale_session[SESSION_SECOND_FACTOR_TIMESTAMP] = int(
                clock.time.return_value
            ) - (SECOND_FACTOR_VERIFY_SECONDS + 1)
            stale_session.save()
    
            response = self.client.get(reverse("password"))
    
>       self.assertRedirects(
            response,
            f"{reverse('2fa-login', kwargs={'backend': 'totp'})}?next={reverse('password')}",
        )
E       AssertionError: 200 != 302 : Response didn't redirect as expected: Response code was 200 (expected 302)

.../accounts/tests/test_twofactor.py:818: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@nijel
nijel force-pushed the renovate/main-ruff branch from d49131b to 0b67551 Compare October 29, 2026 17:40
renovate Bot and others added 2 commits October 29, 2026 19:33
Replace shared time function patches with local module clock mocks to avoid affecting unrelated threads and tasks and satisfy Ruff's shared-clock-mock rule. Keep cache expiry and retry parsing clocks synchronized in machinery tests.
@nijel
nijel force-pushed the renovate/main-ruff branch from 0b67551 to ad73db6 Compare October 29, 2026 18:34
@nijel
nijel disabled auto-merge October 30, 2026 09:40
@nijel
nijel merged commit 8a88437 into main Oct 30, 2026
36 of 39 checks passed
@nijel
nijel deleted the renovate/main-ruff branch October 30, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies PR: Third-party library dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant