Skip to content

Conversation

@trdthg
Copy link
Contributor

@trdthg trdthg commented Jun 9, 2025

Description

I believe that we will fully format the code anyway, as it is necessary for the maintainability of the project.

This PR adds a CI to check whether the PR is correctly formatted.
It also adds a pre-commit hook to help users perform format check locally

I created a basic formatted configuration and simply modified the default line-length 和 quote-style

The only thing to note is that the ruff format will break our manual alignment of the dictionary,ruff format also doesn't support many customization options, but this seems to be a common issue with formatting tools, and black (a more mature formatter) has the same problem https:github.com/psf/black/issues/4281

@jamesbeyond jamesbeyond added the size-S Small efforts required label Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-S Small efforts required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants