You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,13 +65,24 @@ tox -e tests -- -m regression
65
65
- Use appropriate markers (`smoke`, `sanity`, `regression`)
66
66
- Tests should be placed in files matching the name and path of the file under tests. E.g. `src/guidellm/benchmark/schemas/generative/entrypoints.py` -> `tests/unit/benchmark/schemas/generative/test_entrypoints.py`.
67
67
68
-
### Style Requirements
68
+
### Quality Requirements
69
69
70
70
- All Python code must pass linting and formatting
71
71
- All Python code must pass type checking
72
72
- All tests must pass before committing
73
73
- Markdown files must be properly formatted
74
+
75
+
### Style Requirements
76
+
74
77
- Public functions in `src/` code must use the reStructuredText docstring format
78
+
- All imports **SHALL** be done at the top of the file
79
+
-**DO NOT** use `getattr` or `setattr` as it hides incorrect usage of types
80
+
81
+
### Design Requirements
82
+
83
+
- Only touch sections of code that need to be changed for the given task
84
+
- When handling variant-specific logic, encapsulate it in methods on registry class implementations rather than adding if/else branches to generic code paths
85
+
- Class implementations must fully encapsulate their unique logic and that logic must not leak into caller code paths.
0 commit comments