Skip to content

Conversation

@a-akimov
Copy link
Collaborator

@a-akimov a-akimov commented Dec 6, 2025

Motivation and Context

Linters help keeping code clean and unified. I've added ruff to the Python server (and then will add to the Python client as well).

When choosing which linting rules to follow, I copied the one that our community is already using for developing the Python SDK (https://github.com/modelcontextprotocol/python-sdk/blob/main/pyproject.toml) to make sure we keep Python projects consistent.

How Has This Been Tested?

Locally.

Breaking Changes

No

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

N/a

Comment on lines 43 to 46
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/server/fastmcp/test_func_metadata.py" = ["E501"]
"tests/shared/test_progress_notifications.py" = ["PLW0603"]
Copy link
Member

Choose a reason for hiding this comment

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

These are for the Python SDK only, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jonathanhefner ah, yes, thank you for noticing! Removed.

@jonathanhefner jonathanhefner merged commit 1cdc31a into modelcontextprotocol:main Dec 12, 2025
@jonathanhefner
Copy link
Member

Thank you, @a-akimov!

@a-akimov
Copy link
Collaborator Author

Thank you, @jonathanhefner !

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