Skip to content

Add CI for format/lint #525

@trdthg

Description

@trdthg

Hi, I want to add some CI to the codebase to check the code style and do some static analyze. I plan to use ruff , it will bring these benefits:

  • The code style of the current repository is inconsistent and difficult to read, formatting can alleviate this. I will also appropriately modify the format config file based on the current code to make minimal changes.
  • avoid some minor issues, such as duplicate keys in a dictionary
  • Optimize the experience for other contributors, for example (if you use vscode and have installed the plugin, and sometimes you press ctrl-c, auto-save will automatically format the code, which is quite annoying)

Is any suggestions or comments?

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