You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We welcome your contributions to this repository. To ensure elegant code style and better code quality, we have prepared the following contribution guidelines.
4
+
5
+
## What We Accept
6
+
7
+
+ This PR fixes a typo or improves the documentation (if this is the case, you may skip the other checks).
8
+
+ This PR fixes a specific issue — please reference the issue number in the PR description. Make sure your code strictly follows the coding standards below.
9
+
+ This PR introduces a new feature — please clearly explain the necessity and implementation of the feature. Make sure your code strictly follows the coding standards below.
10
+
11
+
## Code Style Guide
12
+
13
+
Good code style is an art. We have prepared a `pyproject.toml` and a `pre-commit` hook to enforce consistent code formatting across the project. You can clean up your code following the steps below:
14
+
15
+
1. Install the required dependencies:
16
+
```shell
17
+
pip install ruff pre-commit
18
+
```
19
+
2. Then, run the following command:
20
+
```shell
21
+
pre-commit run --all-files
22
+
```
23
+
If your code complies with the standards, you should not see any errors.
24
+
25
+
## Naming Conventions
26
+
27
+
- Please use **English** for naming; do not use Pinyin or other languages. All comments should also be in English.
28
+
- Follow **PEP8** naming conventions strictly, and use underscores to separate words. Avoid meaningless names such as `a`, `b`, `c`.
0 commit comments