Skip to content

Conversation

@multiplemonomials
Copy link
Collaborator

@multiplemonomials multiplemonomials commented Oct 28, 2025

Summary of changes

This PR adds an autoformatter for Mbed OS's python scripts. This makes sure that they all have consistent formatting, and will make development easier going forward.

Note: I did not make any manual modifications to python scripts as part of this PR. Everything that was changed was done by Ruff. The only files that need to be reviewed are:

  • .github/workflows/basic_checks.yml
  • tools/pyproject.toml
  • tools/run_python_linters.sh

Impact of changes

Migration actions required

Documentation

None


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[X] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

@multiplemonomials multiplemonomials changed the title [draft] Add Python autoformatter (no actual formatting yet) [draft] Add Python autoformatter Oct 28, 2025
@multiplemonomials multiplemonomials changed the title [draft] Add Python autoformatter Add Python autoformatter Oct 29, 2025
Copy link

@VictorWTang VictorWTang left a comment

Choose a reason for hiding this comment

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

LGTM!

@multiplemonomials multiplemonomials merged commit 9f0dbb6 into master Nov 2, 2025
58 of 59 checks passed
@multiplemonomials multiplemonomials deleted the dev/add-python-autoformatter branch November 2, 2025 01:53
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.

3 participants