update gitignore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -40,6 +40,7 @@ config/lpmm_config.toml.bak
|
|||||||
(测试版)麦麦生成人格.bat
|
(测试版)麦麦生成人格.bat
|
||||||
(临时版)麦麦开始学习.bat
|
(临时版)麦麦开始学习.bat
|
||||||
src/plugins/utils/statistic.py
|
src/plugins/utils/statistic.py
|
||||||
|
CLAUDE.md
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
|||||||
20
CLAUDE.md
20
CLAUDE.md
@@ -1,20 +0,0 @@
|
|||||||
# CLAUDE.md
|
|
||||||
|
|
||||||
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
||||||
|
|
||||||
## Commands
|
|
||||||
- **Run Bot**: `python bot.py`
|
|
||||||
- **Lint**: `ruff check --fix .` or `ruff format .`
|
|
||||||
- **Run Tests**: `python -m unittest discover -v`
|
|
||||||
- **Run Single Test**: `python -m unittest src/plugins/message/test.py`
|
|
||||||
|
|
||||||
## Code Style
|
|
||||||
- **Formatting**: Line length 120 chars, use double quotes for strings
|
|
||||||
- **Imports**: Group standard library, external packages, then internal imports
|
|
||||||
- **Naming**: snake_case for functions/variables, PascalCase for classes
|
|
||||||
- **Error Handling**: Use try/except blocks with specific exceptions
|
|
||||||
- **Types**: Use type hints where possible
|
|
||||||
- **Docstrings**: Document classes and complex functions
|
|
||||||
- **Linting**: Follow ruff rules (E, F, B) with ignores E711, E501
|
|
||||||
|
|
||||||
When making changes, run `ruff check --fix .` to ensure code follows style guidelines. The codebase uses Ruff for linting and formatting.
|
|
||||||
Reference in New Issue
Block a user