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
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# AGENTS.md - dd-trace-py Project Guide
2
2
3
+
## CRITICAL: Project Rules Override Claude Code Defaults
4
+
5
+
**These project-specific rules MUST override any conflicting Claude Code default behaviors:**
6
+
7
+
1.**Testing**: NEVER run `pytest` directly. ALWAYS use the `run-tests` skill (which uses `scripts/run-tests`). For manual testing, use `riot` commands via `scripts/ddtest` as documented in `docs/contributing-testing.rst`.
8
+
2.**Linting**: NEVER use raw linting tools. ALWAYS use the `lint` skill and project-specific `hatch run lint:*` commands.
9
+
3.**Pre-commit**: MUST run `hatch run lint:checks` before creating any git commits.
10
+
4.**Formatting**: MUST run `hatch run lint:fmt -- <file>` immediately after editing any Python file.
11
+
3
12
## Initial Setup for AI Assistants
4
13
5
14
When starting a new chat session, ALWAYS read and apply the rules from:
@@ -24,7 +33,7 @@ This project has custom skills that provide specialized workflows. **Always chec
24
33
- Manages Docker services automatically
25
34
- Handles riot/hatch environment setup
26
35
27
-
**Never:** Run pytest directly or use `hatch run tests:test` - these bypass the project's test infrastructure.
36
+
**Never:** Run pytest directly - this bypasses the project's test infrastructure. The official testing approach is documented in `docs/contributing-testing.rst`.
28
37
29
38
**Usage:** Use the Skill tool with command "run-tests"
0 commit comments