Skip to content

Commit dccd7cb

Browse files
trim down claude prompt and expand its allow list
1 parent 73dfa45 commit dccd7cb

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.claude/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"allow": [
44
"Bash(uv run pytest:*)",
55
"Bash(git add:*)",
6-
"Bash(uv run mypy:*)"
6+
"Bash(uv run mypy:*)",
7+
"Bash(uv run pre-commit:*)"
8+
79
],
810
"deny": []
911
}

CLAUDE.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,27 @@ It provides hook specification and implementation mechanisms through a plugin ma
1010
## Development Commands
1111

1212
### Testing
13-
- `pytest` - Run all tests
14-
- `pytest testing/test_specific.py` - Run specific test file
13+
- `uv run pytest` - Run all tests, prefer runnign all tests to quickly get feedback
14+
- `uv run pytest testing/benchmark.py` runs the benchmark tests
1515
- `tox` - Run tests across multiple Python versions (py39, py310, py311, py312, py313, pypy3)
1616
- `tox -e py39` - Run tests on specific Python version
1717
- `tox -e benchmark` - Run benchmarks
1818
- `tox -e py39-pytestmain` - Test against pytest main branch
1919

2020
### Code Quality
21-
- `ruff check` - Run linting with Ruff
22-
- `ruff format` - Format code with Ruff
23-
- `uv run mypy src/` - Type checking with mypy
24-
- `pre-commit run --all-files` - Run all pre-commit hooks
25-
- Use pre-commit to lint and fix code
21+
- `uv run pre-commit run -a` - Run all pre-commit hooks - gives linting and typing errors + corrects files
22+
- reread files that get fixed by pre-commit
2623

2724
### Documentation
2825
- `tox -e docs` - Build documentation
2926
- `python scripts/towncrier-draft-to-file.py` - Generate changelog draft to verify
3027

3128
### Release
32-
- `tox -e release VERSION` - Create release (requires version argument)
33-
3429
## Core Architecture
3530

3631
### Main Components
32+
33+
- always read all python files in `src/pluggy/ to have full context`
3734
- **PluginManager** (`src/pluggy/_manager.py`): Central registry that manages plugins and coordinates hook calls
3835
- **HookCaller** (`src/pluggy/_hooks.py`): Executes hook implementations with proper argument binding
3936
- **HookImpl/HookSpec** (`src/pluggy/_hooks.py`): Represent hook implementations and specifications

0 commit comments

Comments
 (0)