Code Formatting
About 117 wordsLess than 1 minute
M9A uses a series of formatting tools to ensure that the code and resource files in the repository are clean and consistent, making them easier to maintain and read.
The repository automatically runs formatting daily, and you can also run formatting manually locally.
Formatting Tools
| File Type | Formatting Tool |
|---|---|
| JSON/Yaml | prettier |
| Markdown | MarkdownLint |
| Python | black |
Install Dependencies
pnpm install # Install Node.js dependencies (prettier, etc.)
pip install black # Install Python formatting toolManual Formatting
Run the following commands in the project root directory:
pnpm format:allOr format separately:
pnpm format:json # Format JSON/Yaml
pnpm format:py # Format Python