Skip to content

chore(deps): bump ruff from 0.15.22 to 0.16.3 and address its new checks - #79

Merged
galuszkm merged 1 commit into
mainfrom
chore/mg/deps-bump-ruff-0.16
Aug 15, 2026
Merged

chore(deps): bump ruff from 0.15.22 to 0.16.3 and address its new checks#79
galuszkm merged 1 commit into
mainfrom
chore/mg/deps-bump-ruff-0.16

Conversation

@galuszkm

Copy link
Copy Markdown
Member

Description

Bumps ruff from 0.15.22 to 0.16.3 and refreshes uv.lock (~40 transitive bumps, no pyproject.toml constraint changes), then fixes everything the new version flags.

Ruff 0.16 expands the default rule set and starts formatting Python code blocks in markdown. The resulting changes:

  • resolve_model raises TypeError instead of ValueError for a custom provider that is not a Model subclass
  • a non-mapping YAML config raises ConfigurationError instead of a bare ValueError
  • previously swallowed exceptions are now logged: MCP server thread crash, MCP client and HTTP startup probes
  • MCPLifecycle.__enter__ and __aenter__ return Self
  • mechanical: unused noqa dropped, datetime.UTC in place of timezone.utc, __all__ sorted, endswith merged into one tuple call
  • markdown code samples in mcp/README.md and examples/13_graph_conditions/README.md reformatted by ruff format

No feature work is included. Lint-driven changes only.

Related Issues

N/A

Type of Change

  • Other: dependency and tooling bump, plus the lint fixes it requires

YAML / API Impact

N/A

Testing

How have you tested the change?

  • I ran uv run just check (lint + type check)
  • I ran uv run just test for overall testing
  • I added or updated tests that prove my fix is effective or my feature works
  • I verified existing examples in examples/ still work

Checklist

  • I have read the CONTRIBUTING document
  • I have updated the documentation accordingly
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- refresh `uv.lock`: ruff 0.15.22 to 0.16.3 plus other transitive bumps, no `pyproject.toml` changes
- `resolve_model` raises `TypeError` instead of `ValueError` for a custom provider that is not a `Model` subclass
- a non-mapping YAML config raises `ConfigurationError` instead of a bare `ValueError`
- log previously swallowed exceptions: MCP server thread crash, MCP client and HTTP startup probes
- return `Self` from `MCPLifecycle.__enter__` and `__aenter__`
- drop unused `noqa`, use `datetime.UTC`, sort `__all__`, merge `endswith` into one tuple call
- reformat markdown code samples, now covered by `ruff format`
@galuszkm
galuszkm merged commit 62d9db9 into main Aug 15, 2026
9 checks passed
@galuszkm
galuszkm deleted the chore/mg/deps-bump-ruff-0.16 branch August 15, 2026 11:45
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