Skip to content

Commit bf48f45

Browse files
committed
Add CLAUD.md
1 parent ef00378 commit bf48f45

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CLAUDE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CLAUDE.md - PyTorch Image Models (timm)
2+
3+
## Build/Test Commands
4+
- Install: `python -m pip install -e .`
5+
- Run tests: `pytest tests/`
6+
- Run specific test: `pytest tests/test_models.py::test_specific_function -v`
7+
- Run tests in parallel: `pytest -n 4 tests/`
8+
- Filter tests: `pytest -k "substring-to-match" tests/`
9+
10+
## Code Style Guidelines
11+
- Line length: 120 chars
12+
- Indentation: 4-space hanging indents, arguments should have an extra level of indent, use 'sadface' (closing parenthesis and colon on a separate line)
13+
- Typing: Use PEP484 type annotations in function signatures
14+
- Docstrings: Google style (do not duplicate type annotations and defaults)
15+
- Imports: Standard library first, then third-party, then local
16+
- Function naming: snake_case
17+
- Class naming: PascalCase
18+
- Error handling: Use try/except with specific exceptions
19+
- Conditional expressions: Use parentheses for complex expressions

0 commit comments

Comments
 (0)