| name | dunnlab-codereview |
| description | Code review checklist and process for Dunn Lab projects. Use when reviewing pull requests, auditing code quality, or giving feedback on scripts and analyses.
|
Dunn Lab Code Review
When reviewing code in Dunn Lab projects, follow this process and checklist.
Review process
- Understand the goal — Read the PR description, linked issue, or commit messages to understand what the change is trying to accomplish before reading the code.
- Check the big picture first — Does the approach make sense? Is it the right place for this change? Are there simpler alternatives?
- Walk through the diff — Review the code in logical order (not file order). Start with the entry point and follow the data flow.
- Run the code — Pull the branch locally. Run the tests. Try the new functionality. Check that outputs look correct.
- Leave constructive feedback — Be specific, suggest alternatives, and distinguish between blocking issues and nits.
Checklist
Correctness
Error handling
Testing
Style and conventions
Documentation
Data and reproducibility
Performance and resources
Security and data integrity
Giving feedback
- Be specific: "This filter drops rows where
gene_id is NA — was that intentional?" is better than "Check the filtering logic."
- Suggest, don't demand: "Consider using
pd.merge here for clarity" rather than "Change this to pd.merge."
- Distinguish severity: Prefix with
blocking:, suggestion:, or nit: so the author knows what must be fixed vs. what's optional.
- Acknowledge good work: Call out clean abstractions, thorough tests, or clever solutions.