fix: 滚动
This commit is contained in:
28
AGENTS.md
28
AGENTS.md
@@ -58,17 +58,6 @@ python -m heurams.interface
|
||||
heurams # (if console scripts are configured)
|
||||
```
|
||||
|
||||
### Testing
|
||||
```bash
|
||||
# Run tests (if test suite exists)
|
||||
pytest
|
||||
|
||||
# Run with coverage
|
||||
pytest --cov=heurams
|
||||
```
|
||||
|
||||
**Note**: The test directory appears to have been removed. Previous test files were located in `tests/` (deleted per git status). If adding new tests, follow pytest conventions and place them in a `tests/` directory at the project root.
|
||||
|
||||
### Linting and Formatting
|
||||
No specific linting or formatting configuration observed. Use standard Python conventions.
|
||||
|
||||
@@ -131,23 +120,6 @@ No specific linting or formatting configuration observed. Use standard Python co
|
||||
- Service abstraction with provider pattern (audio, TTS, LLM)
|
||||
- Configuration-driven behavior with fallback defaults
|
||||
|
||||
## Testing Approach
|
||||
|
||||
**Current State**: Test directory removed, but `.pytest_cache` indicates pytest was used.
|
||||
|
||||
**If adding tests**:
|
||||
- Place tests in `tests/` directory at project root
|
||||
- Follow pytest conventions
|
||||
- Use `pytest.fixture` for shared test resources
|
||||
- Mock external dependencies (audio, TTS, LLM providers)
|
||||
- Test configuration overrides via `ConfigContext`
|
||||
|
||||
**Testable Components**:
|
||||
- Algorithm implementations (FSRS, SM2)
|
||||
- Puzzle logic validation
|
||||
- Configuration loading and saving
|
||||
- Atom persistence and evaluation
|
||||
|
||||
## Important Gotchas
|
||||
|
||||
### Configuration Loading
|
||||
|
||||
Reference in New Issue
Block a user