Commit 16d5060
docs: address code review suggestions from Claude
Implements 5 improvements based on PR review feedback:
1. Clarified test class organization wording (line 59)
- Changed "for modules or classes" to "group tests by module or class being tested"
- Removes ambiguity about organizational intent
2. Enhanced vectorization guidance with anti-patterns (lines 33-35)
- Added warning against converting Series to lists
- Added warning against using .iterrows()
- Emphasizes using vectorized operations directly
3. Clarified "public APIs" in input validation (lines 38-39)
- Changed "public APIs" to "public functions and class methods"
- More specific and actionable
4. Added pytest fixtures guidance (line 70)
- Encourages using fixtures for shared test data
- Reduces duplication and improves readability
5. Added positive example for vague comparison assertions (lines 84-86)
- Shows bad: checking if shapes differ
- Shows good: verifying actual filtering behavior with specific assertions
- Uses proper vectorized pandas operations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 95bea71 commit 16d5060
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
82 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
0 commit comments