Skip to content

Commit 99bf773

Browse files
Merge branch 'main' into vianney/disable-native-logging-by-default
2 parents 2e04295 + d5872b9 commit 99bf773

File tree

261 files changed

+8336
-1838
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+8336
-1838
lines changed

.claude/CLAUDE.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# dd-trace-py Project Guide
2+
3+
## Skills
4+
5+
This project has custom skills that provide specialized workflows. **Always check if a skill exists before using lower-level tools.**
6+
7+
### run-tests
8+
9+
**Use whenever:** Running any tests, validating code changes, or when "test" is mentioned.
10+
11+
**Purpose:** Intelligently runs the test suite using `scripts/run-tests`:
12+
- Discovers affected test suites based on changed files
13+
- Selects minimal venv combinations (avoiding hours of unnecessary test runs)
14+
- Manages Docker services automatically
15+
- Handles riot/hatch environment setup
16+
17+
**Never:** Run pytest directly or use `hatch run tests:test` - these bypass the project's test infrastructure.
18+
19+
**Usage:** Use the Skill tool with command "run-tests"
20+
21+
### lint
22+
23+
**Use whenever:** Formatting code, validating style/types/security, or before committing changes.
24+
25+
**Purpose:** Runs targeted linting and code quality checks using `hatch run lint:*`:
26+
- Formats code with Black and Ruff auto-fixes
27+
- Validates style, types, and security
28+
- Checks spelling and documentation
29+
- Validates test infrastructure (suitespec, riotfile, etc.)
30+
- Supports running all checks or targeting specific files
31+
32+
**Common Commands:**
33+
- `hatch run lint:fmt -- <file>` - Format a specific file after editing (recommended after every edit)
34+
- `hatch run lint:typing -- <file>` - Type check specific files
35+
- `hatch run lint:checks` - Run all quality checks (use before committing)
36+
- `hatch run lint:security -- -r <dir>` - Security scan a directory
37+
38+
**Never:** Skip linting before committing. Always run `hatch run lint:checks` before pushing.
39+
40+
**Usage:** Use the Skill tool with command "lint"
41+
42+
---
43+
44+
<!-- Add more skills below as they are created -->

.claude/settings.local.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(find:*)",
5+
"Bash(grep:*)",
6+
"Bash(python:*)",
7+
"Bash(./scripts/events/generate_stub.py:*)",
8+
"Bash(hatch run lint:typing:*)",
9+
"Bash(./scripts/ddtest:*)",
10+
"mcp__github__search_pull_requests",
11+
"mcp__github__get_pull_request",
12+
"mcp__atlassian__getJiraIssue",
13+
"mcp__github__get_pull_request_review_comments",
14+
"Bash(riot list:*)",
15+
"Read(//Users/brett.langdon/datadog/riot/**)",
16+
"Bash(hatch run docs:*)",
17+
"Bash(cargo:*)",
18+
"Bash(source:*)",
19+
"Bash(pip install:*)",
20+
"WebFetch(domain:ast-grep.github.io)",
21+
"Bash(git grep:*)",
22+
"Bash(ast-grep scan:*)",
23+
"Bash(hatch run lint:sg:*)",
24+
"Bash(awk:*)",
25+
"mcp__github__pull_request_read",
26+
"WebFetch(domain:github.com)",
27+
"Skill(run-tests)",
28+
"Bash(scripts/run-tests:*)"
29+
],
30+
"deny": []
31+
}
32+
}

0 commit comments

Comments
 (0)