Skip to content

Code formatters #7829

Description

@IhorNehrutsa

Which C and Python code formatters are used in Micropython?
If they are used, how to run them locally?

If nothing, then I suggest using
Clang formatted for C and C++ source code
Yapf for Python source code

Activity

  1. dlech commented on Sep 20, 2021

    @dlech
    SponsorContributor

    uncrustify and black plus some custom fixups

    Use ./tools/codeformat.py to run locally

  2. IhorNehrutsa commented on Sep 20, 2021

    @IhorNehrutsa
    ContributorAuthor

    @dlech Thank you.

  3. added a commit that references this issue on Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions