diff --git a/.gitignore b/.gitignore index 2eb8dc7be..d6d8f50cf 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,7 @@ config/lpmm_config.toml.bak (测试版)麦麦生成人格.bat (临时版)麦麦开始学习.bat src/plugins/utils/statistic.py +CLAUDE.md # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 02fe9f821..000000000 --- a/CLAUDE.md +++ /dev/null @@ -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. \ No newline at end of file